Move to the UTF-8 encoding.

This migration is necessary since Lua scripts sources use the UTF-8 encoding while the web browser sees the iso-8859-1 encoding, and this incongruence breaks the visualization of some non-ascii characters.
This commit is contained in:
emanuele-f 2017-05-04 18:56:04 +02:00
parent 1c38df48c9
commit 979fbd74e9
5 changed files with 38 additions and 8 deletions

View file

@ -104,7 +104,7 @@ end
-- ##############################################
function sendHTTPContentTypeHeader(content_type, content_disposition, charset)
local charset = charset or "iso-8859-1"
local charset = charset or "utf-8"
local mime = content_type.."; charset="..charset
sendHTTPHeader(mime, content_disposition)
end