Re: [PHP] Convert fake Unicode to real UTF-8

2005-11-04 Thread Andreas Jakl
Thanks for the tip! htmlentities() didn't work, as it just converted the in the string to amp;. However, following the trail I did get it working the other way round, using: html_entity_decode($row['text'], ENT_NOQUOTES, UTF-8) After this call, I had a real unicode text in my output file.

[PHP] Convert fake Unicode to real UTF-8

2005-11-03 Thread Andreas Jakl
I've been searching for quite some time now and tried several functions, but didn't find a solution. I hope somebody can point me in the right direction. The problem: Russian text is entered through a web form. It's a rather badly administrated external webserver with old versions of everything,

Re: [PHP] Convert fake Unicode to real UTF-8

2005-11-03 Thread Minuk Choi
Have you tried feeding that through htmlentities()? e.g. echo htmlentities(#1043;#1072;); see if that outputs what you want on the page. -Mk Andreas Jakl wrote: I've been searching for quite some time now and tried several functions, but didn't find a solution. I hope somebody can point me