{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/6731","labels_url":"https://api.github.com/repos/atom/atom/issues/6731/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/6731/comments","events_url":"https://api.github.com/repos/atom/atom/issues/6731/events","html_url":"https://github.com/atom/atom/issues/6731","id":75136995,"number":6731,"title":"Invalid characters are shown as correct","user":{"login":"TheLastProject","id":1885159,"avatar_url":"https://avatars.githubusercontent.com/u/1885159?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLastProject","html_url":"https://github.com/TheLastProject","followers_url":"https://api.github.com/users/TheLastProject/followers","following_url":"https://api.github.com/users/TheLastProject/following{/other_user}","gists_url":"https://api.github.com/users/TheLastProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLastProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLastProject/subscriptions","organizations_url":"https://api.github.com/users/TheLastProject/orgs","repos_url":"https://api.github.com/users/TheLastProject/repos","events_url":"https://api.github.com/users/TheLastProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheLastProject/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-11T08:31:26Z","updated_at":"2015-05-11T10:15:25Z","closed_at":null,"body":"EDIT: This happened on Linux (Trisquel 7) in case that's relevant.\r\n\r\nToday, I copied some text out of a .docx document, which seemingly contained a few malformed characters.\r\n\r\nAtom displays it as if it's correct:\r\n![atom](https://cloud.githubusercontent.com/assets/1885159/7560943/39272b14-f7c8-11e4-9b74-1f8295d78e33.png)\r\n\r\nVim, however, does show there is something wrong:\r\n![vim](https://cloud.githubusercontent.com/assets/1885159/7560951/4d0a9b02-f7c8-11e4-8217-74d51abfe34b.png)\r\n\r\nFirefox shows issues too on the raw gist:\r\n![firefox_gist_raw](https://cloud.githubusercontent.com/assets/1885159/7561032/11231352-f7c9-11e4-9b67-8071684413f4.png)\r\n\r\nAtom's behaviour, in this case, is problematic, as this XML document will have issues validating to the schema with very weird errors, but looking at it in Atom shows no hint, whatsoever, as to why.\r\n\r\nThe XML file in question: https://gist.github.com/TheLastProject/20600c9c4071fc8d8a2b"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/100849505","html_url":"https://github.com/atom/atom/issues/6731#issuecomment-100849505","issue_url":"https://api.github.com/repos/atom/atom/issues/6731","id":100849505,"user":{"login":"thomasjo","id":3622,"avatar_url":"https://avatars.githubusercontent.com/u/3622?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasjo","html_url":"https://github.com/thomasjo","followers_url":"https://api.github.com/users/thomasjo/followers","following_url":"https://api.github.com/users/thomasjo/following{/other_user}","gists_url":"https://api.github.com/users/thomasjo/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasjo/subscriptions","organizations_url":"https://api.github.com/users/thomasjo/orgs","repos_url":"https://api.github.com/users/thomasjo/repos","events_url":"https://api.github.com/users/thomasjo/events{/privacy}","received_events_url":"https://api.github.com/users/thomasjo/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T10:15:25Z","updated_at":"2015-05-11T10:15:25Z","body":"I fail to understand why this is an Atom issue; the file in question violates the XML specification because the encoding declaration [violates the spec](http://www.w3.org/TR/REC-xml/#NT-EncodingDecl). The problem character is **not** a hyphen (I haven't checked the exact char, but most likely an *en-dash*). The file does not contain a BOM indicating it's UTF-8, so the default in (almost every) browser is to assume default encoding is ASCII/Windows-1252, whereas Atom by default assumes (the more sensible) UTF-8.\r\n\r\nAgain, I fail to see how this is a problem with Atom. Maybe someone can explain?"}}