utf8 encoding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saeed
Forum Newbie
Posts: 1
Joined: Sun Sep 03, 2006 2:42 am

utf8 encoding

Post 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
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post 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
Post Reply