{"action":"created","issue":{"url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/9","repository_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS","labels_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/9/comments","events_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/9/events","html_url":"https://github.com/gonzus/JavaScript-Duktape-XS/issues/9","id":321171292,"number":9,"title":"Wrong enconding in the final output","user":{"login":"Askoth","id":729754,"avatar_url":"https://avatars2.githubusercontent.com/u/729754?v=4","gravatar_id":"","url":"https://api.github.com/users/Askoth","html_url":"https://github.com/Askoth","followers_url":"https://api.github.com/users/Askoth/followers","following_url":"https://api.github.com/users/Askoth/following{/other_user}","gists_url":"https://api.github.com/users/Askoth/gists{/gist_id}","starred_url":"https://api.github.com/users/Askoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Askoth/subscriptions","organizations_url":"https://api.github.com/users/Askoth/orgs","repos_url":"https://api.github.com/users/Askoth/repos","events_url":"https://api.github.com/users/Askoth/events{/privacy}","received_events_url":"https://api.github.com/users/Askoth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T12:46:01Z","updated_at":"2018-05-13T22:54:07Z","closed_at":null,"author_association":"NONE","body":"We know the the encoding of the data is fine before sending it to JS. We know that the final output is wrong.\r\n\r\nSomewhere in the middle it seems to be expecing latin instead of utf8 and is messing up.\r\n\r\neg: displaying CalendÃ¡rio instead of Calendário"},"comment":{"url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/comments/388661971","html_url":"https://github.com/gonzus/JavaScript-Duktape-XS/issues/9#issuecomment-388661971","issue_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/9","id":388661971,"user":{"login":"gonzus","id":208546,"avatar_url":"https://avatars2.githubusercontent.com/u/208546?v=4","gravatar_id":"","url":"https://api.github.com/users/gonzus","html_url":"https://github.com/gonzus","followers_url":"https://api.github.com/users/gonzus/followers","following_url":"https://api.github.com/users/gonzus/following{/other_user}","gists_url":"https://api.github.com/users/gonzus/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzus/subscriptions","organizations_url":"https://api.github.com/users/gonzus/orgs","repos_url":"https://api.github.com/users/gonzus/repos","events_url":"https://api.github.com/users/gonzus/events{/privacy}","received_events_url":"https://api.github.com/users/gonzus/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T22:54:07Z","updated_at":"2018-05-13T22:54:07Z","author_association":"OWNER","body":"Good catch, thanks @Askoth. I just uploaded a new version 0.52 which fixes this (and adds a unit test). I still need to fix the same issue for strings used as hash keys (which require a bit of a different treatment), but strings anywhere else should be treated now as utf8.\r\n\r\nI will keep the issue open until I fix the hash keys thing."}}
{"actor":{"display_login":"gonzus"}}