From: phpbugs at staznosti dot sk Operating system: win PHP version: Irrelevant PHP Bug Type: Strings related Bug description: html_entity_decode bug - cannot yet handle MBCS in html_entity_decode()!
Description: ------------ html_entity_decode() shows error: Warning: cannot yet handle MBCS in html_entity_decode()! in ..... problems with the following entities: ľ č ť ľ I guess it crashes also with other ones... UTF-8 is set as character set regarding connection to: Bug #25670 - proposed solution doesn't work - characters displayed are not those sent in form field!!! http://bugs.php.net/bug.php?id=25670&edit=2 php version 4.3.3 (irrelevant in this case) Reproduce code: --------------- $this->filename="ľ hello world, but it's not so happy shouting today" echo html_entity_decode($this->filename,ENT_NOQUOTES,'UTF-8'); Expected result: ---------------- to get entity converted to applicable character Actual result: -------------- Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 Warning: cannot yet handle MBCS in html_entity_decode()! in c:\www\absolut\admin\classengine.php on line 335 -- Edit bug report at http://bugs.php.net/?id=27626&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27626&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27626&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27626&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27626&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27626&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27626&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27626&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27626&r=support Expected behavior: http://bugs.php.net/fix.php?id=27626&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27626&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27626&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27626&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27626&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27626&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27626&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27626&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27626&r=float
