{"action":"created","issue":{"url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding/issues/4","repository_url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding","labels_url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding/issues/4/comments","events_url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding/issues/4/events","html_url":"https://github.com/SonicHedgehog/detect-character-encoding/issues/4","id":140511134,"number":4,"title":"Add support for use in browser","user":{"login":"treyhunner","id":285352,"avatar_url":"https://avatars.githubusercontent.com/u/285352?v=3","gravatar_id":"","url":"https://api.github.com/users/treyhunner","html_url":"https://github.com/treyhunner","followers_url":"https://api.github.com/users/treyhunner/followers","following_url":"https://api.github.com/users/treyhunner/following{/other_user}","gists_url":"https://api.github.com/users/treyhunner/gists{/gist_id}","starred_url":"https://api.github.com/users/treyhunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treyhunner/subscriptions","organizations_url":"https://api.github.com/users/treyhunner/orgs","repos_url":"https://api.github.com/users/treyhunner/repos","events_url":"https://api.github.com/users/treyhunner/events{/privacy}","received_events_url":"https://api.github.com/users/treyhunner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-13T17:59:29Z","updated_at":"2016-03-13T21:19:11Z","closed_at":"2016-03-13T21:19:11Z","body":"If this worked client-side, the [File API](https://www.w3.org/TR/FileAPI/) could be used to read a file locally and detect everything locally which would avoid the need to upload anything to a server.\r\n\r\nIt looks like this relies on C++ code. Any chance this could be turned into a fully JavaScript-powered library in the future?"},"comment":{"url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding/issues/comments/196055616","html_url":"https://github.com/SonicHedgehog/detect-character-encoding/issues/4#issuecomment-196055616","issue_url":"https://api.github.com/repos/SonicHedgehog/detect-character-encoding/issues/4","id":196055616,"user":{"login":"treyhunner","id":285352,"avatar_url":"https://avatars.githubusercontent.com/u/285352?v=3","gravatar_id":"","url":"https://api.github.com/users/treyhunner","html_url":"https://github.com/treyhunner","followers_url":"https://api.github.com/users/treyhunner/followers","following_url":"https://api.github.com/users/treyhunner/following{/other_user}","gists_url":"https://api.github.com/users/treyhunner/gists{/gist_id}","starred_url":"https://api.github.com/users/treyhunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treyhunner/subscriptions","organizations_url":"https://api.github.com/users/treyhunner/orgs","repos_url":"https://api.github.com/users/treyhunner/repos","events_url":"https://api.github.com/users/treyhunner/events{/privacy}","received_events_url":"https://api.github.com/users/treyhunner/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T21:19:11Z","updated_at":"2016-03-13T21:19:11Z","body":"I understand. Mine isn't sophisticated enough. :disappointed: \r\n\r\nFYI I found [jschardet](https://github.com/aadsm/jschardet) which claims to be a port of Python's chardet which also detects character encodings. I haven't played with it yet but it should work in browser. Thanks!"}}