Page 1 of 1

utf8 encoding

Posted: Sun Sep 03, 2006 3:13 am
by saeed
Hi
I have a problem with encoding in php : i have this string in the database :
"%u0644%u0627 %u064A%u0648%u062C%u062F %u062C%u0648%u0627%u0628"
each % determine the begin of a char
i need to decode this string in php to get the orginal string
can any one help me

Posted: Sun Sep 03, 2006 6:01 am
by Mordred
From http://bg.php.net/utf8_encode, there's a post with this:
http://pure-essence.net/stuff/code/utf8 ... ecode.phps
(and there are some variants of it which might be more relevant to your goal)

HTH