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 "&". 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. A

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("Га"); 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 in the r

[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,