{"action":"opened","issue":{"url":"https://api.github.com/repos/bnoordhuis/node-iconv/issues/141","labels_url":"https://api.github.com/repos/bnoordhuis/node-iconv/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/bnoordhuis/node-iconv/issues/141/comments","events_url":"https://api.github.com/repos/bnoordhuis/node-iconv/issues/141/events","html_url":"https://github.com/bnoordhuis/node-iconv/issues/141","id":120963528,"number":141,"title":"Bab behavior of //TRANSLIT ?","user":{"login":"NicolasJacob","id":1026057,"avatar_url":"https://avatars.githubusercontent.com/u/1026057?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasJacob","html_url":"https://github.com/NicolasJacob","followers_url":"https://api.github.com/users/NicolasJacob/followers","following_url":"https://api.github.com/users/NicolasJacob/following{/other_user}","gists_url":"https://api.github.com/users/NicolasJacob/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasJacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasJacob/subscriptions","organizations_url":"https://api.github.com/users/NicolasJacob/orgs","repos_url":"https://api.github.com/users/NicolasJacob/repos","events_url":"https://api.github.com/users/NicolasJacob/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasJacob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T08:59:07Z","updated_at":"2015-12-08T08:59:07Z","closed_at":null,"body":"Hello \r\nOn unix we have this behavior:\r\n\r\n```\r\n$ echo \"élloï “amœboïde € Φ\" | iconv -t  ISO885916//TRANSLIT   | iconv  -f ISO885916 -t UTF8\r\nélloï \"amœboïde € ?\r\n```\r\n\r\nNotice that 'Φ' is translited to '?'\r\n\r\nOn node-icon, we have an exception:\r\n\r\n```\r\n> I=require('iconv').Iconv\r\n> conv1 = new I('UTF-8', 'iso-8859-16//TRANSLIT');\r\n> conv1.convert(\"élloï “amœboïde € Φ\")\r\nError: Illegal character sequence.\r\n\r\n```\r\nNotice that this piece of code does'nt produce suitable results , since I want to see the ? in place of Φ.\r\n\r\n```\r\n...\r\n> conv1 = new I('UTF-8', 'iso-8859-16//TRANSLIT//IGNORE');\r\n> conv2 = new I('iso-8859-2', 'UTF-8');\r\n> conv2.convert(conv1.convert(\"élloï “amœboïde € Φ\")).toString()\r\n'élloï \"amœboïde € '\r\n```\r\n\r\nI did't found out how to do this, and in my opinion current implementation //TRANSLIT is not correct, it should dot the same things as on UNIX.\r\n\r\nCheers\r\n\r\nNicolas"}}