Re: default_charset and friends
| From: | Yasuo Ohgaki | Date: | Thu, 20 Mar 2014 00:57:52 +0000 |
| Subject: | Re: default_charset and friends | ||
| References: | 1 | Groups: | php.doc php.internals |
| Request: | Send a blank email to phpdoc+get-969384884@lists.php.net to get a copy of this message | ||
Hi Adam
On Thu, Mar 20, 2014 at 8:08 AM, Adam Harvey <aharvey@php.net> wrote:
>
> string(7) "£"
> string(7) "£"
> string(1) "�"
> string(1) "�"
>
> But instead, I got this output, suggesting that the calls without
> explicit charset parameters were treated as UTF-8:
>
> string(0) ""
> string(7) "£"
> string(2) "£"
> string(1) "�"
>
> What am I missing here? Do htmlentities(), htmlspecialchars() and
> html_entity_decode() actually respect default_charset? (Also, if I set
> internal_encoding, input_encoding and output_encoding, which one
> should get used for each?)
>
It looks l missed some.
I'll commit it soon.
Thank you.
--
Yasuo Ohgaki
yohgaki@ohgaki.net