skeeto / skewer-mode

Live web development in Emacs
The Unlicense
1.09k stars 57 forks source link

Add metadata for utf-8 coding #75

Closed Liu233w closed 7 years ago

Liu233w commented 7 years ago

If not, some characters (such as chinese) can't display correctly in web pages and logs

skeeto commented 7 years ago

Instead I'd like to nip this in the bud by having Skewer always declare "charset=UTF-8" in the HTTP header. That's the encoding it will always transmit regardless of the encoding of the underlying files because Emacs uses UTF-8 internally. I should have done this in the beginning, but I didn't know better all those years ago.

Does my change work for you?

Liu233w commented 7 years ago

It works.

Thank you(´・ω・`)