Comment 2 for bug 1058669

Revision history for this message
Robie Basak (racb) wrote :

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.