From:             nospam at unclassified dot de
Operating system: Windows, Linux
PHP version:      4.3.2
PHP Bug Type:     *General Issues
Bug description:  cannot yet handle MBCS in html_entity_decode()

Description:
------------
Trying to decode HTML entities into UTF-8 results in the following error
message:

Warning: cannot yet handle MBCS in html_entity_decode()!

The line is repeated about 200 times, then html_entity_decode just uses
ISO-8859-1 charset.

Reproduce code:
---------------
echo html_entity_decode("ü", ENT_QUOTES, "UTF-8");

Expected result:
----------------
some UTF-8 encoding of '�'

Actual result:
--------------
error messages see above, then Latin-1 encoding of '�'

-- 
Edit bug report at http://bugs.php.net/?id=25670&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25670&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25670&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25670&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25670&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25670&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25670&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25670&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25670&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25670&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25670&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25670&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25670&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25670&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25670&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25670&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25670&r=float

Reply via email to