N
N
nicepig2132020-06-24 11:49:22
PHP
nicepig213, 2020-06-24 11:49:22

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

2 answer(s)
A
AUser0, 2020-06-24
@nicepig213

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);

T
Talyan, 2020-06-24
@flapflapjack

To quickly determine the encoding, I always use the Lebedev decoder.
https://www.artlebedev.ru/decoder/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question