{"action":"opened","issue":{"url":"https://api.github.com/repos/fguillot/picoFeed/issues/165","labels_url":"https://api.github.com/repos/fguillot/picoFeed/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/fguillot/picoFeed/issues/165/comments","events_url":"https://api.github.com/repos/fguillot/picoFeed/issues/165/events","html_url":"https://github.com/fguillot/picoFeed/issues/165","id":85955784,"number":165,"title":"Encoding::convert return empty string","user":{"login":"ferjflores","id":1944159,"avatar_url":"https://avatars.githubusercontent.com/u/1944159?v=3","gravatar_id":"","url":"https://api.github.com/users/ferjflores","html_url":"https://github.com/ferjflores","followers_url":"https://api.github.com/users/ferjflores/followers","following_url":"https://api.github.com/users/ferjflores/following{/other_user}","gists_url":"https://api.github.com/users/ferjflores/gists{/gist_id}","starred_url":"https://api.github.com/users/ferjflores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferjflores/subscriptions","organizations_url":"https://api.github.com/users/ferjflores/orgs","repos_url":"https://api.github.com/users/ferjflores/repos","events_url":"https://api.github.com/users/ferjflores/events{/privacy}","received_events_url":"https://api.github.com/users/ferjflores/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-07T22:28:36Z","updated_at":"2015-06-07T22:28:36Z","closed_at":null,"body":"Hi, there is a problem with the iconv function in Encoding::convert according to these bug reports:\r\nhttps://bugs.php.net/bug.php?id=48147 \r\nhttps://bugs.php.net/bug.php?id=52211 \r\nhttps://bugs.php.net/bug.php?id=61484 \r\n\r\nIf iconv is used to filter invalid characters return a emtpty string, i used the proposed solution in this comment: http://php.net/manual/es/function.iconv.php#108643\r\n\r\nreplacing this line in Encoding.php\r\n```\r\nreturn @iconv($encoding, 'UTF-8//IGNORE', $input);\r\n```\r\n\r\nwith:\r\n```\r\nini_set('mbstring.substitute_character', \"none\");\r\nreturn mb_convert_encoding($input, 'UTF-8', $encoding);\r\n```\r\n\r\n"}}