Page 1 of 1

some encoding/decoding problem

Posted: Wed Feb 22, 2006 6:30 am
by jmut
%u0430%u043B%u0430%u0431%u0430%u043B%u0430


Could someone tell me function or something to revert this to UTF presentation.
This is some output comming from AJAX when typing cyrillic chars.
Hopefully someone knows what I am talking about.

Posted: Wed Feb 22, 2006 7:08 am
by jamiel
Have you tried iconv() ?

Posted: Wed Feb 22, 2006 9:54 am
by feyd
FYI, those are UTF, UTF-16.

Here's a snippet I posted a while ago converting character entities to UTF-8. You could use hexdec() on each byte pair to get the decimal form.
viewtopic.php?t=36549

Posted: Wed Feb 22, 2006 10:44 am
by jmut
10x a lot for answers.
I was wrting on behalve of a friend of mine.
He seemed to have found a solution.
Thanks again.