Answer the question
In order to leave comments, you need to log in
Why is PHP outputting text from a csv file in a different encoding?
Question: Why does alert print the output message "p»їРњR°Sp»їРњР° true text;text;text"?
What we have:
php file (utf8 encoding)
csv file (utf8 encoding)
js file (utf8 encoding)
csv content looks like:
"Text Text true text;text;text"
PHP text:
$my_file = file("jobs.csv") ;
for($i=0;$i
Answer the question
In order to leave comments, you need to log in
Question removed. I set utf8 in the site settings on nic.ru.
Thanks to all who answered.
try iconv() to re-encode, somewhere apparently all the same another encoding.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question