note 88323 added to function.unicode-decode
| From: | lunter at interia dot pl | Date: | Tue, 20 Jan 2009 11:17:57 +0000 |
| Subject: | note 88323 added to function.unicode-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149512@lists.php.net to get a copy of this message | ||
Example 1:
<?
// unicode.semantics = off
// unicode.runtime_encoding = iso-8859-1
// unicode.script_encoding = utf-8
// unicode.output_encoding = utf-8
// unicode.from_error_mode = U_INVALID_SUBSTITUTE
// unicode.from_error_subst_char = 3f
$binary=(binary)chr(194).(binary)chr(160);
// utf-8 bytes of Non-breaking space
$text=unicode_decode($binary,'utf-8');
// (binary)chr(194).(binary)chr(160) => chr(160)
print(ord($text[0]));
?>
----
Server IP: 82.177.164.100
Probable Submitter: 217.97.237.2
----
Manual Page -- http://www.php.net/manual/en/function.unicode-decode.php
Edit -- https://master.php.net/note/edit/88323
Del: integrated -- https://master.php.net/note/delete/88323/integrated
Del: useless -- https://master.php.net/note/delete/88323/useless
Del: bad code -- https://master.php.net/note/delete/88323/bad+code
Del: spam -- https://master.php.net/note/delete/88323/spam
Del: non-english -- https://master.php.net/note/delete/88323/non-english
Del: in docs -- https://master.php.net/note/delete/88323/in+docs
Del: other reasons-- https://master.php.net/note/delete/88323
Reject -- https://master.php.net/note/reject/88323
Search -- https://master.php.net/manage/user-notes.php