Add support utf8
hkjorgensen opened this issue · comments
Hi this is a great part of HEXO, but I wish you would add support for utf8 in the response headers. Having non-english chars like: "æøå" (danish letters) does not work when running hexo server
. utf8
needs to be set in the nodejs server :-)
Hi, just a quick thought: have you tried adding <meta charset="UTF-8">
inside your <head>
?
Thanks! yes, that fixed it :-)
Cool, happy to hear that 😄 At this stage, I would also consider closing this issue: I think setting the encoding in the page meta-vars is better than forcing the charset in the server response header.
Setting content type per file is a nice workaround. Would still be nice to have a globally configured content type for the server.
- It would be easier to apply across all files (HTML/SVG/etc) at once.
- This works with files that do not have meta data, like JSON or plaintext files without BOM.
- Mimics potential configuration of the production environment (static server or CDN).
Glad it has fixed. Close this issue.