Answer the question
In order to leave comments, you need to log in
How to solve php encoding problem?
I am writing a parser of goods from an XML file,
if you follow the debugging in phpStorm, then everything is ok, there are Russian letters,
but when I output (var_dump) to the browser, I see the following
krakozyabry ... Lebedev's
decoder says that CP1251 should be translated into UTF-8 and everything will be readable again, but I did it through iconv and still see crooks, but others.
maybe I just need to send some kind of header to the browser, tell me why this is happening and how to fix it
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