note 31324 added to function.convert-cyr-string

From: Date: Thu, 17 Apr 2003 13:21:14 +0000
Subject: note 31324 added to function.convert-cyr-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-46736@lists.php.net to get a copy of this message
I hope it to you we shall help function win_to_utf8($str){ $str = convert_cyr_string($str, 'w','i'); // w - windows-1251 to i - iso8859-5 $str = utf8_encode ($str); // iso8859-5 to utf8 return $str; } function utf8_to_win($str){ $str = utf8_decode ($str); // utf8 to iso8859-5 $str = convert_cyr_string($str, 'i','w'); // w - windows-1251 to i - iso8859-5 return $str; } If there are questions - shall help. Good luck friends!!! -- http://www.php.net/manual/en/function.convert-cyr-string.php http://master.php.net/manage/user-notes.php?action=edit+31324 http://master.php.net/manage/user-notes.php?action=delete+31324 http://master.php.net/manage/user-notes.php?action=reject+31324

« previous php.notes (#46736) next »