| all to utf-8
|
nick patrick

msg:3855866 | 3:50 pm on Feb 23, 2009 (gmt 0) | i want to convert the text to utf-8 all type of text to every language arabic etc
|
whoisgregg

msg:3855881 | 4:04 pm on Feb 23, 2009 (gmt 0) | Perhaps utf8_encode [php.net]() would be helpful then?
|
nick patrick

msg:3855885 | 4:08 pm on Feb 23, 2009 (gmt 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);
|
|
|