UTF-8 characters not displaying properly from JPEG IPTC data in PHP
问题 When reading the IPTC data from an image, UTF-8 accented characters are not displaying properly when reading them via PHP. For example: é, ø and ü With a header content-type set as UTF8, instead of the character, I get the question mark in a black diamond. � If no content-type is set, then I get a dash character: — The following is the code being used to read the IPTC block: $file = '/path/to/image.jpg'; getimagesize($file, $info); $iptc = iptcparse($info['APP13']); I have also tried