I
I
Igor2017-06-15 17:49:57
PHP
Igor, 2017-06-15 17:49:57

How to fix wrong encoding when parsing curl?

Hello! Parsing the Greek site and faced with the fact that curl takes data in the wrong encoding and instead of Σύνολα για αρχάριους (0) it turns out ΣÏνολα για αÏÏάÏιοÏÏ (0)
In the Lebedev decoder https: //www.artlebedev.ru/decoder/advanced/ ) it turned out to get the source text from these krakozyabr if you decode from CP-1251 to UTF-8 prntscr.com/fk4jow But in php it doesn’t work like that.
Line 112 ( Gist ).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question