[Bug 1058669] Re: htmlentities returns nothing
Robie Basak
1058669 at bugs.launchpad.net
Fri Oct 19 10:58:50 UTC 2012
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
>From the manual at http://php.net/manual/en/function.htmlentities.php:
htmlentities() takes an optional third argument encoding which defines
encoding used in conversion. If omitted, the default value for this
argument is ISO-8859-1 in versions of PHP prior to 5.4.0, and UTF-8 from
PHP 5.4.0 onwards. Although this argument is technically optional, you
are highly encouraged to specify the correct value for your code.
As the default encoding is documented to have changed between 5.3.10
(12.04) and 5.4.6 (12.10), my understanding of the manual is that what
you're seeing is expected, and if you want to decode ISO-8859-1 then you
are required to specify your encoding as you have described.
Since this appears to be expected behaviour and not a bug, I'm marking
this bug as Invalid. If this is wrong, please do comment and reopen.
** Changed in: php5 (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1058669
Title:
htmlentities returns nothing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1058669/+subscriptions
More information about the Ubuntu-server-bugs
mailing list