[hunchentoot-devel] Re: utf-8 encoding problems

Andrei Stebakov lispercat at gmail.com
Wed Sep 3 14:10:32 UTC 2008


My image handlers look approximately like:

(defun image-handler ()
  (no-cache)
  (setf (hunchentoot:content-type) "image/jpeg")
  (let ((stream (send-headers)))
    (with-image (new 100 100)
       (do-something-with-img new)
       (write-jpeg-to-stream stream :image new))))

Andrew

On Wed, Sep 3, 2008 at 2:42 AM, Edi Weitz <edi at agharta.de> wrote:

> On Tue, 2 Sep 2008 17:48:00 -0400, "Andrei Stebakov" <lispercat at gmail.com>
> wrote:
>
> > If I set global (setf *hunchentoot-default-external-format*
> > (flex:make-external-format :utf-8 :eol-style :lf)) Then all my
> > handlers which generate images will produce empty outputs.
>
> How do your image handlers look like?  They should return binary data
> and shouldn't be affected by the external format.
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20080903/ae8e58ce/attachment.html>


More information about the Tbnl-devel mailing list