:external-format :utf-8 not respected
When starting aserve with (gwl:start-gwl), with current feature/zacl branch of gendl, it will specify :external-format :utf-8 for CCL (the external-format name needs to be made portable, but that's another issue).
You can also manually start aserve with :external-format :utf-8 just to be sure and to make a small self-contained example:
(net.aserve:start :port 9005 :external-format :utf-8)
Now try the following publish command (and note the :external-format in the with-http-body should not be necessary, if the server was started with the correct :external-format):
(in-package :gwl)
(publish :path "/utf8-try"
:function #'(lambda(req ent)
(with-http-response (req ent :content-type "text/html; charset=utf-8")
(with-http-body (req ent :external-format :utf-8)
(format *html-stream* "Hey €¥© Now")
;;(format *html-stream* "Hey Now")
))))
Current behavior:
When visiting http://localhost:9005/utf8-try you will see error
[ASERVE] 60-aserve-worker: 11/28/16 - 19:25:19 - while processing command "GET /utf8-try HTTP/1.1"
got the error #\U+20AC (code 8364) is not a LATIN-1 character.
Expected behavior:
The web page should display the EUR, JPY, and Copyright symbols normally.