<div dir="ltr">I have problems with some of the utf-8 characters in sbcl 1.0.18 and hunchentoot-0.15.7 (Ubuntu)<br>When I create a handler like this:<br><br>(defun test-handler ()<br>  (no-cache)<br>  (recompute-request-parameters :external-format (flex:make-external-format :utf-8 :eol-style :lf))<br>
  (setf (hunchentoot:content-type) "text/html; charset=utf-8")<br>  (with-html-output-to-string (*standard-output* nil :prologue nil :indent nil)<br>    (:html <br>     (:head <br>      (:title "Test page"))<br>
     (:body<br>      (:p <br><pre id="line1">""quotation"")))))<br></pre><br>Where I have those "right and left quotation marks" I get an error:<br>#\LEFT_DOUBLE_QUOTATION_MARK (code 8220) is not a LATIN-1 character.<br>
   [Condition of type FLEXI-STREAMS:EXTERNAL-FORMAT-ENCODING-ERROR]<br><br>If, on the other hand, I set global variable *hunchentoot-default-external-format* to utf-8<br>(setf *hunchentoot-default-external-format* (flex:make-external-format :utf-8 :eol-style :lf))<br>
then everything works.<br>I just want one handler to handle the uft-8 encoding, how can I fix it?<br><br>Thank you,<br>Andrew<br><br></div>