#25670 [Opn]: cannot yet handle MBCS in html_entity_decode()

From: Date: Fri, 26 Sep 2003 13:30:48 +0000
Subject: #25670 [Opn]: cannot yet handle MBCS in html_entity_decode()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48146@lists.php.net to get a copy of this message
ID: 25670 User updated by: nospam at unclassified dot de Reported By: nospam at unclassified dot de Status: Open Bug Type: *General Issues Operating System: Windows, Linux PHP Version: 4.3.2 New Comment: Slightly correcting: It won't use Latin-1 but just do nothing. I tested with a Unicode character (≈ "almost equal") and it returned the character readable. Can be tested by passing html_entity_decode to htmlspecialchars and then echo'ing. Previous Comments: ------------------------------------------------------------------------ [2003-09-26 09:24:52] nospam at unclassified dot de 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 this bug report at http://bugs.php.net/?id=25670&edit=1

« previous php.bugs (#48146) next »