Index: wp-admin/includes/image.php
===================================================================
--- wp-admin/includes/image.php	(revision 21203)
+++ wp-admin/includes/image.php	(working copy)
@@ -253,13 +253,13 @@
 
 			// headline, "A brief synopsis of the caption."
 			if ( ! empty( $iptc['2#105'][0] ) )
-				$meta['title'] = utf8_encode( trim( $iptc['2#105'][0] ) );
+				$meta['title'] = _maybe_utf8_encode( trim( $iptc['2#105'][0] ) );
 			// title, "Many use the Title field to store the filename of the image, though the field may be used in many ways."
 			elseif ( ! empty( $iptc['2#005'][0] ) )
-				$meta['title'] = utf8_encode( trim( $iptc['2#005'][0] ) );
+				$meta['title'] = _maybe_utf8_encode( trim( $iptc['2#005'][0] ) );
 
 			if ( ! empty( $iptc['2#120'][0] ) ) { // description / legacy caption
-				$caption = utf8_encode( trim( $iptc['2#120'][0] ) );
+				$caption = _maybe_utf8_encode( trim( $iptc['2#120'][0] ) );
 				if ( empty( $meta['title'] ) ) {
 					// Assume the title is stored in 2:120 if it's short.
 					if ( strlen( $caption ) < 80 )
@@ -272,15 +272,15 @@
 			}
 
 			if ( ! empty( $iptc['2#110'][0] ) ) // credit
-				$meta['credit'] = utf8_encode(trim($iptc['2#110'][0]));
+				$meta['credit'] = _maybe_utf8_encode( trim( $iptc['2#110'][0] ) );
 			elseif ( ! empty( $iptc['2#080'][0] ) ) // creator / legacy byline
-				$meta['credit'] = utf8_encode(trim($iptc['2#080'][0]));
+				$meta['credit'] = _maybe_utf8_encode( trim( $iptc['2#080'][0] ) );
 
 			if ( ! empty( $iptc['2#055'][0] ) and ! empty( $iptc['2#060'][0] ) ) // created date and time
 				$meta['created_timestamp'] = strtotime( $iptc['2#055'][0] . ' ' . $iptc['2#060'][0] );
 
 			if ( ! empty( $iptc['2#116'][0] ) ) // copyright
-				$meta['copyright'] = utf8_encode( trim( $iptc['2#116'][0] ) );
+				$meta['copyright'] = _maybe_utf8_encode( trim( $iptc['2#116'][0] ) );
 		 }
 	}
 
@@ -289,39 +289,39 @@
 		$exif = @exif_read_data( $file );
 
 		if ( !empty( $exif['Title'] ) )
-			$meta['title'] = utf8_encode( trim( $exif['Title'] ) );
+			$meta['title'] = _maybe_utf8_encode( trim( $exif['Title'] ) );
 
 		if ( ! empty( $exif['ImageDescription'] ) ) {
 			if ( empty( $meta['title'] ) && strlen( $exif['ImageDescription'] ) < 80 ) {
 				// Assume the title is stored in ImageDescription
-				$meta['title'] = utf8_encode( trim( $exif['ImageDescription'] ) );
+				$meta['title'] = _maybe_utf8_encode( trim( $exif['ImageDescription'] ) );
 				if ( ! empty( $exif['COMPUTED']['UserComment'] ) && trim( $exif['COMPUTED']['UserComment'] ) != $meta['title'] )
-					$meta['caption'] = utf8_encode( trim( $exif['COMPUTED']['UserComment'] ) );
+					$meta['caption'] = _maybe_utf8_encode( trim( $exif['COMPUTED']['UserComment'] ) );
 			} elseif ( trim( $exif['ImageDescription'] ) != $meta['title'] ) {
-				$meta['caption'] = utf8_encode( trim( $exif['ImageDescription'] ) );
+				$meta['caption'] = _maybe_utf8_encode( trim( $exif['ImageDescription'] ) );
 			}
 		} elseif ( ! empty( $exif['Comments'] ) && trim( $exif['Comments'] ) != $meta['title'] ) {
-			$meta['caption'] = utf8_encode( trim( $exif['Comments'] ) );
+			$meta['caption'] = _maybe_utf8_encode( trim( $exif['Comments'] ) );
 		}
 
 		if ( ! empty( $exif['Artist'] ) )
-			$meta['credit'] = utf8_encode( trim( $exif['Artist'] ) );
+			$meta['credit'] = _maybe_utf8_encode( trim( $exif['Artist'] ) );
 		elseif ( ! empty($exif['Author'] ) )
-			$meta['credit'] = utf8_encode( trim( $exif['Author'] ) );
+			$meta['credit'] = _maybe_utf8_encode( trim( $exif['Author'] ) );
 
 		if ( ! empty( $exif['Copyright'] ) )
-			$meta['copyright'] = utf8_encode( trim( $exif['Copyright'] ) );
+			$meta['copyright'] = _maybe_utf8_encode( trim( $exif['Copyright'] ) );
 		if ( ! empty($exif['FNumber'] ) )
 			$meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 );
 		if ( ! empty($exif['Model'] ) )
-			$meta['camera'] = utf8_encode( trim( $exif['Model'] ) );
+			$meta['camera'] = _maybe_utf8_encode( trim( $exif['Model'] ) );
 		if ( ! empty($exif['DateTimeDigitized'] ) )
 			$meta['created_timestamp'] = wp_exif_date2ts($exif['DateTimeDigitized'] );
 		if ( ! empty($exif['FocalLength'] ) )
 			$meta['focal_length'] = wp_exif_frac2dec( $exif['FocalLength'] );
 		if ( ! empty($exif['ISOSpeedRatings'] ) ) {
 			$meta['iso'] = is_array( $exif['ISOSpeedRatings'] ) ? reset( $exif['ISOSpeedRatings'] ) : $exif['ISOSpeedRatings'];
-			$meta['iso'] = utf8_encode( trim( $meta['iso'] ) );
+			$meta['iso'] = _maybe_utf8_encode( trim( $meta['iso'] ) );
 		}
 		if ( ! empty($exif['ExposureTime'] ) )
 			$meta['shutter_speed'] = wp_exif_frac2dec( $exif['ExposureTime'] );
@@ -332,6 +332,25 @@
 }
 
 /**
+ * Encode IPTC data to UTF-8.
+ * 
+ * a) If the data is valid UTF-8 then there is nothing to do.
+ * b) If not, assume ISO-8859-1 and encode it to UTF-8.
+ * 
+ * @since 3.5
+ *
+ * @param string $itpc raw IRB value returned by iptcparse()
+ * @return string utf8 encoded value
+ */
+function _maybe_utf8_encode( $itpc ) {
+	
+	if ( ! seems_utf8( $itpc ) )
+		$itpc = utf8_encode( $itpc );
+	
+	return $itpc;
+}
+
+/**
  * Validate that file is an image.
  *
  * @since 2.5.0
