Answer the question
In order to leave comments, you need to log in
What is this encoding?
Source text: Protecting files.
What I get when I use file_get_content : P —P B°PЎvЂ°P S'RЎvЂљP B° PЎvЂћP V°P v„–R B»R S•R P†.
Answer the question
In order to leave comments, you need to log in
Apparently, this is UTF-8, which, without recoding, is displayed on a page with Win-1251 encoding.
Use recode:$txt = @iconv("UTF-8", "CP1251", $txt);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question