<div dir="ltr"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">As a matter of interest, why do you have a problem using UTF8<br></blockquote>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
everywhere? Just about everything supports it these days, and the<br></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
lower seven bits look like ASCII?</blockquote><div><br>If I set global (setf *hunchentoot-default-external-format* (flex:make-external-format :utf-8 :eol-style :lf))<br>Then all my handlers which generate images will produce empty outputs.<br>
<br>Andrew<br></div><br><div class="gmail_quote">On Tue, Sep 2, 2008 at 4:38 PM, Robert Synnott <span dir="ltr"><<a href="mailto:rsynnott@gmail.com">rsynnott@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2008/9/2 Andrei Stebakov <<a href="mailto:lispercat@gmail.com">lispercat@gmail.com</a>>:<br>
<div class="Ih2E3d">> No luck emailing the quotation marks. Let's try a German character 'ß'<br>
><br>
> (defun test-handler ()<br>
> (no-cache)<br>
> (recompute-request-parameters :external-format (flex:make-external-format<br>
> :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<br>
> nil)<br>
> (:html<br>
> (:head<br>
> (:title "Test page"))<br>
> (:body<br>
> (:p "weiß")))))<br>
><br>
> Will produce text like "wei�"<br>
> If I set the global variable:<br>
> (setf *hunchentoot-default-external-format* (flex:make-external-format<br>
> :utf-8 :eol-style :lf))<br>
> the problem gets fixed.<br>
><br>
> Andrew<br>
><br>
<br>
</div>As a matter of interest, why do you have a problem using UTF8<br>
everywhere? Just about everything supports it these days, and the<br>
lower seven bits look like ASCII?<br>
<br>
Anyway, (setf (reply-external-format &optional reply) new-value) with<br>
the make-external-format thing as 'new-value' should do the trick.<br>
Rob<br>
<br>_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br></blockquote></div><br></div>