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
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to