[wp-trac] [WordPress Trac] #21903: UTF-8 encoded image caption processed incorrectly

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 17 00:48:56 UTC 2012


#21903: UTF-8 encoded image caption processed incorrectly
------------------------------+------------------------------
 Reporter:  chenxing          |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Media             |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-unit-tests  |
------------------------------+------------------------------
Changes (by nacin):

 * keywords:   => needs-unit-tests
 * component:  Administration => Media


Comment:

 utf8_encode() makes sense when going from ISO-8859-1 to UTF-8. You're
 right that there is an escape sequence in the IPTC standard to mark that
 encoding is UTF-8, and that we currently don't check it. It would be
 helpful if "#090" and "\x1B%G" is fully explained.

 Also, for this, we are going to want some unit tests with an image with
 metadata encoded with UTF-8.

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


More information about the wp-trac mailing list