{"action":"created","issue":{"url":"https://api.github.com/repos/mathewv/wolftrans/issues/2","labels_url":"https://api.github.com/repos/mathewv/wolftrans/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mathewv/wolftrans/issues/2/comments","events_url":"https://api.github.com/repos/mathewv/wolftrans/issues/2/events","html_url":"https://github.com/mathewv/wolftrans/issues/2","id":124435094,"number":2,"title":"incompatible character encodings: UTF-8 and Windows-31J","user":{"login":"N1nj4R4bb1D","id":16494393,"avatar_url":"https://avatars.githubusercontent.com/u/16494393?v=3","gravatar_id":"","url":"https://api.github.com/users/N1nj4R4bb1D","html_url":"https://github.com/N1nj4R4bb1D","followers_url":"https://api.github.com/users/N1nj4R4bb1D/followers","following_url":"https://api.github.com/users/N1nj4R4bb1D/following{/other_user}","gists_url":"https://api.github.com/users/N1nj4R4bb1D/gists{/gist_id}","starred_url":"https://api.github.com/users/N1nj4R4bb1D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N1nj4R4bb1D/subscriptions","organizations_url":"https://api.github.com/users/N1nj4R4bb1D/orgs","repos_url":"https://api.github.com/users/N1nj4R4bb1D/repos","events_url":"https://api.github.com/users/N1nj4R4bb1D/events{/privacy}","received_events_url":"https://api.github.com/users/N1nj4R4bb1D/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-31T05:52:43Z","updated_at":"2016-01-05T20:18:34Z","closed_at":null,"body":"> wolftrans-0.2.0/lib/wolftrans/patch_text.rb:254:in `block (2 levels) in process_patch_file': incompatible character encodings: UTF-8 and Windows-31J (Encoding::CompatibilityError)\r\n\r\nEncountered this problem with one game. I fixed it for myself by cobbling together an additional exception handling in patch_text.rb:254\r\n\r\n\tbegin\r\n\t\toutput << \"> CONTEXT \" << context.to_s << \" < UNTRANSLATED\\n\"\r\n\trescue => e\r\n\t\tif context.to_s.encoding != output.encoding\r\n\t\t\toutput << context.to_s.encode!(output.encoding) << \" < UNTRANSLATED\\n\"\r\n\t\telse\r\n\t\t\traise e\r\n\t\tend\r\n\tend"},"comment":{"url":"https://api.github.com/repos/mathewv/wolftrans/issues/comments/169119665","html_url":"https://github.com/mathewv/wolftrans/issues/2#issuecomment-169119665","issue_url":"https://api.github.com/repos/mathewv/wolftrans/issues/2","id":169119665,"user":{"login":"mathewv","id":4576666,"avatar_url":"https://avatars.githubusercontent.com/u/4576666?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewv","html_url":"https://github.com/mathewv","followers_url":"https://api.github.com/users/mathewv/followers","following_url":"https://api.github.com/users/mathewv/following{/other_user}","gists_url":"https://api.github.com/users/mathewv/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewv/subscriptions","organizations_url":"https://api.github.com/users/mathewv/orgs","repos_url":"https://api.github.com/users/mathewv/repos","events_url":"https://api.github.com/users/mathewv/events{/privacy}","received_events_url":"https://api.github.com/users/mathewv/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T20:18:34Z","updated_at":"2016-01-05T20:18:34Z","body":"Hmm, what OS are you running? And if you're running Windows, is your system codepage set to 932 (Japanese) by chance?"}}