Character mess when reading CGI-params on UTF-8 newLISP
Posted: Wed Oct 19, 2011 10:51 pm
I'm using cgi.lsp to read POST following POST-ed parameters:
Here's what cgi.lsp gives me (web.lsp behaves accordingly):
The output above is produced by this code:
newLISP version is this:
Maybe someone here could give me some pointers on how to get data as utf8 strings?
Regards,
Kirill
Code: Select all
text=тест
save-note=Save
Code: Select all
(("save-note" "Save") ("text" "\209\130\208\181\209\129\209\130"))
теÑÑ‚
Code: Select all
(println "Content-type: text/plain\n\n")
(println CGI:params)
(println (CGI:get "text"))
(exit)
Code: Select all
newLISP v.10.3.4 64-bit on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.
Regards,
Kirill