php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27626 html_entity_decode bug - cannot yet handle MBCS in html_entity_decode()!
Submitted: 2004-03-17 10:05 UTC Modified: 2004-03-17 10:32 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: phpbugs at staznosti dot sk Assigned:
Status: Closed Package: Strings related
PHP Version: Irrelevant OS: win
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbugs at staznosti dot sk
New email:
PHP Version: OS:

 

 [2004-03-17 10:05 UTC] phpbugs at staznosti dot sk
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-17 10:12 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

This is fixed in PHP 5.
 [2004-03-17 10:18 UTC] phpbugs at staznosti dot sk
But is it tested? The solution proposed in Bug #25670 DOES NOT work.
 [2004-03-17 10:32 UTC] derick@php.net
Yes, it works fine in PHP 5.

Keep this bug closed now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 16:01:31 2025 UTC