Convert ISO-8859-2 to UTF-8 (Polish characters)
I'm trying to parse an XML file (http://jstryczek.blox.pl/rss2) that says
its character set is ISO-8859-2. My database is in UTF-8, so I want to
convert it to UTF-8.
To do that I run the following on the string:
$content = iconv('ISO-8859-2', 'UTF-8//TRANSLIT', $content);
For some reason, I'm getting back an odd encoding, so that:
Gdzie s¹ ró¿nice
Comes through as:
Gdzie są róşnice
Is there an explanation for why the Polish characters aren't coming
through? Does UTF-8 not support them?
No comments:
Post a Comment