PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_DataGrid » Bug #5829

SDG 0.6.3 htmlentities make multibyte char unreadable

Details

Submitted2005-10-31 09:03 UTC
Fromkenchou77 at gmail dot com
Assignedolivierg
StatusClosed
PackageStructures_DataGrid
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-10-31 09:03 UTC] kenchou77 at gmail dot com

Description:
------------
see Bug #3601. htmlentities Convert all applicable characters to HTML entities, include Multibyte characters.
htmlspecialchars is better.

Test script:
---------------
//used Docs/Examples/examples.php and add a record:
array('id' => '6',
'first_name' => '名字', //chinese char
'last_name' => '姓氏', //chinese char
'age' => 28)

//HTMLTable.php line 456
//htmlspecialchars work fine.
$content = htmlspecialchars($row[$column->fieldName]);

Expected result:
----------------
名字
(can readable)

Actual result:
--------------
Ãû×Ö
html source:Ãû×Ö
(unreadable)

[2005-10-31 09:46 UTC] olivierg at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.