[wp-trac] [WordPress Trac] #20368: htmlspecialchars() returns empty string for non-UTF-8 input in PHP 5.4

WordPress Trac wp-trac at lists.automattic.com
Tue May 15 22:18:46 UTC 2012


#20368: htmlspecialchars() returns empty string for non-UTF-8 input in PHP 5.4
--------------------------+------------------------------
 Reporter:  convissor     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by kurtpayne):

 * cc: kpayne@… (added)


Comment:

 @convissor, thinking about another solution:

 It seems that this only affects data coming from the database.  What if
 the data was converted to UTF-8 when it was fetched from the database?

 http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/wp-
 db.php#L1115

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20368#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list