Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question