note 88323 deleted from function.unicode-decode by danbrown
| From: | danbrown@php.net | Date: | Tue, 20 Jan 2009 18:01:39 +0000 |
| Subject: | note 88323 deleted from function.unicode-decode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149543@lists.php.net to get a copy of this message | ||
Note Submitter: lunter at interia dot pl
Reason: integrated
----
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]));
?>