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 09:03 UTC
From: kenchou77 at gmail dot com Assigned: olivierg
Status: Closed Package: Structures_DataGrid
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 + 27 = ?

 
 [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)

Comments

 [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.