I found a bug in static file managment.
If I start hunchentoot with:
(setf acceptor (make-instance 'hunchentoot:easy-acceptor
:document-root (truename "./static/")))
then hunchentoot return all .html files from ./static/ with Content-Type: text/html; charset=utf-8,
but other text/ files, like .js it returns without charset=... , and there is no way to change this.
If such .js file contains utf-8 text, than browser display it incorrectly.
Hans, can you fix this or may be advice how to do it, and i will try myself?
Actually, it would be better to add the charset= specification in the MIME-TYPE function, not in HANDLE-STATIC-FILE.
You are right, I was checking on json handlers, so I find no charset in content-type. Sorry.