﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20408	wp_read_image_metadata wrongly assumes IPTC metadata is Latin1	koke		"Some applications like Aperture, use UTF8 in the IPTC tags. When exported images are uploaded to WordPress, the title and description metadata has the wrong encoding

The problem is in [http://phpxref.ftwr.co.uk/wordpress/nav.html?wp-admin/includes/image.php.source.html#l197 wp_read_image_metadata], since it runs utf8_encode for every field even if it's already utf8

To check if the parsed iptc is already UTF-8:

{{{
$iptc_is_utf8 = isset( $iptc['1#090'] ) && ""\x1B%G"" == $iptc['1#090'];
}}}

Depending on that result, the tags should go through utf8_encode or left as they are"	defect (bug)	closed	normal		Media	3.4	normal	duplicate		
