{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/757","labels_url":"https://api.github.com/repos/haskell/cabal/issues/757/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/757/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/757/events","html_url":"https://github.com/haskell/cabal/issues/757","id":4726854,"number":757,"title":"Highlighted source code on hackage.haskell.org mangles Unicode","user":{"login":"bos","id":23374,"avatar_url":"https://avatars.githubusercontent.com/u/23374?v=3","gravatar_id":"","url":"https://api.github.com/users/bos","html_url":"https://github.com/bos","followers_url":"https://api.github.com/users/bos/followers","following_url":"https://api.github.com/users/bos/following{/other_user}","gists_url":"https://api.github.com/users/bos/gists{/gist_id}","starred_url":"https://api.github.com/users/bos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bos/subscriptions","organizations_url":"https://api.github.com/users/bos/orgs","repos_url":"https://api.github.com/users/bos/repos","events_url":"https://api.github.com/users/bos/events{/privacy}","received_events_url":"https://api.github.com/users/bos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/haskell/cabal/labels/hackage1","name":"hackage1","color":"ddba8d"},{"url":"https://api.github.com/repos/haskell/cabal/labels/unicode","name":"unicode","color":"e2aa30"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/6","html_url":"https://github.com/haskell/cabal/milestones/HackageDB","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/6/labels","id":123213,"number":6,"title":"HackageDB","description":null,"creator":{"login":"bos","id":23374,"avatar_url":"https://avatars.githubusercontent.com/u/23374?v=3","gravatar_id":"","url":"https://api.github.com/users/bos","html_url":"https://github.com/bos","followers_url":"https://api.github.com/users/bos/followers","following_url":"https://api.github.com/users/bos/following{/other_user}","gists_url":"https://api.github.com/users/bos/gists{/gist_id}","starred_url":"https://api.github.com/users/bos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bos/subscriptions","organizations_url":"https://api.github.com/users/bos/orgs","repos_url":"https://api.github.com/users/bos/repos","events_url":"https://api.github.com/users/bos/events{/privacy}","received_events_url":"https://api.github.com/users/bos/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":16,"state":"open","created_at":"2012-05-24T04:39:53Z","updated_at":"2015-02-27T16:13:20Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2012-05-24T05:45:33Z","updated_at":"2015-02-27T16:13:20Z","closed_at":"2015-02-27T16:13:20Z","body":"(Imported from [Trac #767](http://hackage.haskell.org/trac/hackage/ticket/767), reported by andersk on 2010-11-19)\n\nOn hackage.haskell.org, when you browse the source of a module that contains Unicode (e.g. [Data.Eq.Unicode](http://hackage.haskell.org/packages/archive/base-unicode-symbols/latest/doc/html/src/Data-Eq-Unicode.html)), it is sent with a <tt>Content-Type: text/html</tt> header with no charset.  There is a charset in the XML declaration <tt>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;</tt>, but that is ignored by Firefox because of the non-XML <tt>Content-Type</tt>.  Therefore, the wrong encoding is detected and the Unicode symbols get mangled.\n\nPossible fixes include sending <tt>Content-Type: text/html; charset=UTF-8</tt>, or sending <tt>Content-Type: application/xhtml+xml</tt> so that the XML declaration is respected , or both (<tt>Content-Type: application/xhtml+xml; charset=utf-8</tt>), or adding equivalent <tt>&lt;meta http-equiv=\"Content-Type\"&gt;</tt> tags."}}