xeoncross / jr

Jr. the static, static javascript site generator (you should see this)
Other
759 stars 39 forks source link

Doesn't work with UTF-8 ? #20

Closed Popoliito closed 10 years ago

Popoliito commented 10 years ago

Hello,

I've tried to use Jr for my blog, but when I write a document (encoded in UTF-8), I obtain full of encoding errors like these :

Si l'utilisateur tient vraiment à lire cet article, alors il peut dépenser un peu de puissance CPU pour le mettre en page lui-même après tout !

I'm totally noob with javascript, so it's pretty hard to debug it myself. Did I do something wrong ? This problem is it "normal" ?

PS : yes, I'm french.

xeoncross commented 10 years ago

That actually isn't something Jr can do since it's rendered on the client. You need to have your server (apache/nginx/etc..) send the correct Content-Type: text/html; charset="utf-8" header.

Popoliito commented 10 years ago

Ok, thanks, problem solved