{"action":"created","issue":{"url":"https://api.github.com/repos/lsolesen/pel/issues/41","labels_url":"https://api.github.com/repos/lsolesen/pel/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/lsolesen/pel/issues/41/comments","events_url":"https://api.github.com/repos/lsolesen/pel/issues/41/events","html_url":"https://github.com/lsolesen/pel/issues/41","id":105302228,"number":41,"title":"Getting silent fatal errors when an unknown tag has a weird value.","user":{"login":"jamesmcq","id":856093,"avatar_url":"https://avatars.githubusercontent.com/u/856093?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmcq","html_url":"https://github.com/jamesmcq","followers_url":"https://api.github.com/users/jamesmcq/followers","following_url":"https://api.github.com/users/jamesmcq/following{/other_user}","gists_url":"https://api.github.com/users/jamesmcq/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmcq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmcq/subscriptions","organizations_url":"https://api.github.com/users/jamesmcq/orgs","repos_url":"https://api.github.com/users/jamesmcq/repos","events_url":"https://api.github.com/users/jamesmcq/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmcq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T05:14:44Z","updated_at":"2015-09-08T06:12:27Z","closed_at":null,"body":"I have an image that is throwing the PelInvalidDataException on line 808 of PelIfd.php. However, it looks like the weird value for the unknown tag is preventing the exception from being constructed, and the script dies silently. \r\n\r\nI don't know the correct way to solve this, but a working solution for me is:\r\n\r\nIn PelEntry, line 248:\r\n```\r\n- $str .= Pel::fmt(\"    Value     : %s\\n\", print_r($this->getValue(), true));\r\n+ $str .= Pel::fmt(\"    Value     : %s\\n\", utf8_encode(print_r($this->getValue(), true)));\r\n```\r\n\r\nThis seems to allow the exception to be created and the file to continue processing."},"comment":{"url":"https://api.github.com/repos/lsolesen/pel/issues/comments/138447248","html_url":"https://github.com/lsolesen/pel/issues/41#issuecomment-138447248","issue_url":"https://api.github.com/repos/lsolesen/pel/issues/41","id":138447248,"user":{"login":"weberhofer","id":793251,"avatar_url":"https://avatars.githubusercontent.com/u/793251?v=3","gravatar_id":"","url":"https://api.github.com/users/weberhofer","html_url":"https://github.com/weberhofer","followers_url":"https://api.github.com/users/weberhofer/followers","following_url":"https://api.github.com/users/weberhofer/following{/other_user}","gists_url":"https://api.github.com/users/weberhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/weberhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weberhofer/subscriptions","organizations_url":"https://api.github.com/users/weberhofer/orgs","repos_url":"https://api.github.com/users/weberhofer/repos","events_url":"https://api.github.com/users/weberhofer/events{/privacy}","received_events_url":"https://api.github.com/users/weberhofer/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T06:12:27Z","updated_at":"2015-09-08T06:12:27Z","body":"@jamesmcq can you share this image for creating a test-case?"}}