Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.3

Bug #5829 SDG 0.6.3 htmlentities make multibyte char unreadable
Submitted: 2005-10-31 04:03 UTC Modified: 2006-12-16 18:22 UTC
From: kenchou77 at gmail dot com Assigned: olivierg
Status: Closed Package: Structures_DataGrid
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-31 04: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)

Comments

 [2005-10-31 04: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.