note 71999 added to function.utf8-decode
| From: | Ajgor at osu1 dot php dot net | Date: | Thu, 28 Dec 2006 13:38:29 +0000 |
| Subject: | note 71999 added to function.utf8-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120979@lists.php.net to get a copy of this message | ||
small upgrade for polish decoding:
function utf82iso88592($text) {
$text = str_replace("\xC4\x85", 'Ä
', $text);
$text = str_replace("\xC4\x84", 'Ä', $text);
$text = str_replace("\xC4\x87", 'Ä', $text);
$text = str_replace("\xC4\x86", 'Ä', $text);
$text = str_replace("\xC4\x99", 'Ä', $text);
$text = str_replace("\xC4\x98", 'Ä', $text);
$text = str_replace("\xC5\x82", 'Å', $text);
$text = str_replace("\xC5\x81", 'Å', $text);
$text = str_replace("\xC3\xB3", 'ó', $text);
$text = str_replace("\xC3\x93", 'Ã', $text);
$text = str_replace("\xC5\x9B", 'Å', $text);
$text = str_replace("\xC5\x9A", 'Å', $text);
$text = str_replace("\xC5\xBC", 'ż', $text);
$text = str_replace("\xC5\xBB", 'Å»', $text);
$text = str_replace("\xC5\xBA", 'ż', $text);
$text = str_replace("\xC5\xB9", 'Å»', $text);
$text = str_replace("\xc5\x84", 'Å', $text);
$text = str_replace("\xc5\x83", 'Å', $text);
return $text;
} // utf82iso88592
----
Server IP: 83.64.128.68
Probable Submitter: 62.111.156.146 (proxied: 10.10.1.177)
----
Manual Page -- http://www.php.net/manual/en/function.utf8-decode.php
Edit -- https://master.php.net/note/edit/71999
Del: integrated -- https://master.php.net/note/delete/71999/integrated
Del: useless -- https://master.php.net/note/delete/71999/useless
Del: bad code -- https://master.php.net/note/delete/71999/bad+code
Del: spam -- https://master.php.net/note/delete/71999/spam
Del: non-english -- https://master.php.net/note/delete/71999/non-english
Del: in docs -- https://master.php.net/note/delete/71999/in+docs
Del: other reasons-- https://master.php.net/note/delete/71999
Reject -- https://master.php.net/note/reject/71999
Search -- https://master.php.net/manage/user-notes.php