[hunchentoot-devel] hunchentoot:*default-content-type* & hunchentoot:*hunchentoot-default-external-format*
Thibault Langlois
tl at di.fc.ul.pt
Wed Jun 15 07:39:04 UTC 2011
*
*
On Wed, Jun 15, 2011 at 7:41 AM, Jan Tolenaar <jan.tolenaar at xs4all.nl>wrote:
>
>
> 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.
>
>
I hadded accept-charset="UTF-8". Thanks for the tip.
--
> Jan Tolenaar
>
>
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
>
--
Thibault Langlois
FCUL / DI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20110615/3878728d/attachment.html>
More information about the Tbnl-devel
mailing list