[hunchentoot-devel] Using utf-8 strings with with-html macro.

Victor Kryukov victor.kryukov at gmail.com
Sat Mar 17 18:24:49 UTC 2007


On Mar 17, 2007, at 1:13 PM, Tobia wrote:

> Victor Kryukov wrote:
>> I'm trying to output some cyrillic letters
>
> Your example, slightly modified, works fine on my system*
>
> I say slightly modified as I don't know where to find the with-html
> macro you used.  Here's what I did:
>
> 	(asdf:operate 'asdf:load-op :hunchentoot)
> 	(asdf:operate 'asdf:load-op :cl-who)
>
> 	(defpackage :test (:use :cl :cl-who :hunchentoot))
> 	(in-package :test)
>
> 	(setf *default-content-type* "text/html; charset=utf-8")
> 	

Ah! Here it is! I forgot to set *default-content-type*! Thanks a lot  
Tobia!!

Victor Kryukov
http://antlook.com




More information about the Tbnl-devel mailing list