Welcome to WebmasterWorld Guest from 54.242.165.26

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

all to utf-8

     
3:50 pm on Feb 23, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 13, 2009
posts:46
votes: 0


i want to convert the text to utf-8 all type of text to every language arabic etc
4:04 pm on Feb 23, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 9, 2003
posts:3416
votes: 0


Perhaps utf8_encode [php.net]() would be helpful then?
4:08 pm on Feb 23, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 13, 2009
posts:46
votes: 0


no because
i tried with windows-1256
but its not working when i tried to convert
$st = preg_replace("/([\340-\357])([\200-\277])([\200-\277])/e",
"'&#'.((ord('\\1')-224)*4096 + (ord('\\2')-128)*64 + (ord('\\3')-128)).';'",
$st);
$st = preg_replace("/([\300-\337])([\200-\277])/e",
"'&#'.((ord('\\1')-192)*64+(ord('\\2')-128)).';'",
$st);
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members