orthecreedence / wookie

Asynchronous HTTP server in common lisp
http://wookie.lyonbros.com/
MIT License
189 stars 19 forks source link

Strange unicode issues in responses #55

Closed orthecreedence closed 9 years ago

orthecreedence commented 10 years ago
(defroute (:get "/char") (req res)
  (send-response res :body "µ" :headers '(:content-type "text/plain; charset=utf8")))

Expected: when I go to /char I see

µ

Actual: I see

The only translation is happening in babel, though, so it's a weird problem.

orthecreedence commented 9 years ago

Actually, my vim was set with enc=latin1, which meant the UTF8 strings I was sending were getting messed up. Now that I'm testing with enc=utf8, the characters are coming through just fine. @eudoxia0, is there any way you can give me a simple test case for this because I'm not able to reproduce. Any strange UTF8 string I throw at wookie seem to come through just fine in the client.

eudoxia0 commented 9 years ago

I am no longer able to reproduce this either.

orthecreedence commented 9 years ago

Thanks for checking, closing for now. Let me know if you run into it again.

eudoxia0 commented 9 years ago

Thanks, but I think the latest commits must have fixed it.