problems with UTF-8 encoding in PHP
- by user296516
Hi guys,
The characters I am getting from the URL, for example www.mydomain.com/?name=john , were fine, as longs as they were not in Russian.
If they were are in Russian, I was getting '????'.
So I added $name= iconv("cp1251","utf-8" ,$name); and now it works fine for Russian and English characters, but screws up other languages. :)))
For example 'Janis' ( Latvian ) that worked fine before iconv, now turns into 'j??nis'.
Any idea if there's some universal encoder that would work with both the Cyrillic languages and not screw up other languages?