Re: note 88323 deleted from function.unicode-decode by danbrown
| From: | Daniel Brown | Date: | Tue, 20 Jan 2009 17:52:45 +0000 |
| Subject: | Re: note 88323 deleted from function.unicode-decode by danbrown | ||
| References: | 1 2 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149546@lists.php.net to get a copy of this message | ||
Thanks for your submission to the user notes. I've deleted it
from the notes in favor of integrating it into the official
documentation, but would like to ask you to rewrite the example just a
bit to conform to the style of other examples. If you could write out
what you did in your example and also what will happen as a result,
just as you see in other examples, and then email it to me directly at
danbrown@php.net, I'll be more than happy to commit it to the manual
for you.
Thanks again for your submission!
On Tue, Jan 20, 2009 at 13:01, <danbrown@php.net> wrote:
> 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]));
> ?>
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
</Daniel P. Brown>
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!