Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

all to utf-8

     

nick patrick

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

5+ Year Member



i want to convert the text to utf-8 all type of text to every language arabic etc

whoisgregg

4:04 pm on Feb 23, 2009 (gmt 0)

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



Perhaps utf8_encode [php.net]() would be helpful then?

nick patrick

4:08 pm on Feb 23, 2009 (gmt 0)

5+ Year Member



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);
 

Featured Threads

Hot Threads This Week

Hot Threads This Month