[hunchentoot-devel] hunchentoot:*default-content-type* & hunchentoot:*hunchentoot-default-external-format*

Jan Tolenaar jan.tolenaar at xs4all.nl
Wed Jun 15 06:41:42 UTC 2011



On 15/06/2011 00:27, Thibault Langlois wrote:
> *Hi,
>
> If I want to serve web pages encoded in UTF-8, I should set these two 
> variables :
> (setf hunchentoot:*default-content-type* "text/html; charset=UTF-8")
> (setf hunchentoot:*hunchentoot-default-external-format* 
> hunchentoot::+utf-8+)
>
> Am I correct ?
> Is it ok to use an internal symbol (+utf-8+) or is there another way ?
>
> Thanks,
> *
> -- 
> Thibault Langlois
> FCUL / DI
>
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel

You should also set the charset property in your <form> elements to 
"utf-8". Also be aware of the default encoding of your database.

--
Jan Tolenaar






More information about the Tbnl-devel mailing list