Re: default_charset and friends

From: Date: Thu, 20 Mar 2014 02:08:01 +0000
Subject: Re: default_charset and friends
References: 1 2  Groups: php.doc php.internals 
Request: Send a blank email to internals+get-73315@lists.php.net to get a copy of this message
Hi Adam, On Thu, Mar 20, 2014 at 9:57 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > On Thu, Mar 20, 2014 at 8:08 AM, Adam Harvey <aharvey@php.net> wrote: > >> >> string(7) "&pound;" >> string(7) "&pound;" >> 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) "&pound;" >> 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. > Sorry, I missed to handle it properly. I've committed patch. I should work now. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#73315) next »