
#145: Hackage does not support UTF-8 characters --------------------------------+------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.4 Component: HackageDB website | Version: 1.1.6 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.4.2 | Platform: --------------------------------+------------------------------------------- Comment (by guest): /packages/archive/pkg-list.html is potentially broken because it's served as utf-8 (being static) when it's intended to be viewed as latin1. Dynamic pages are instead correctly served as latin1 because that's the default for runCGI. This derives from the behaviour of the HTML Char instance in the xhtml package: it expects unicode codepoints and escapes chars >= 255 with a numerical escape. (note that the first 255 codepoints of unicode correspond to latin1) Hence it works fine as long as everything is served as latin1, so we should either set that in the webserver configuration for static pages or directly in the page itself. Or is it maybe better to produce utf8 pages? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/145#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects