[hunchentoot-devel] encoding

Andrew Pennebaker andrew.pennebaker at gmail.com
Wed Mar 9 21:38:33 UTC 2011


Use cl-who to create the HTML output, in which a <meta> tag is used to
specify UTF8.

From
https://github.com/mcandre/doeshunchentootwork/blob/master/doeshunchentootwork.lisp
.

(defmacro standard-page ((&key title) &body body)
`(cl-who:with-html-output-to-string (*standard-output* nil :prologue t
:indent t)
  (:html :xmlns "http://www.w3.org/1999/xhtml" :xml\:lang "en" :lang "en"
   (:head
    (:title ,title)
    (:meta :http-equiv "Content-Type" :content "text/html;charset=utf-8"))
  (:body :style "text-align: center;"

   (:a :href "https://github.com/mcandre/doeshunchentootwork" "GitHub")
   (:h1 "Does Hunchentoot work?")

   , at body))))



Cheers,

Andrew Pennebaker
www.yellosoft.us



On Wed, Mar 9, 2011 at 3:19 PM, Haris <fbogdanovic at xnet.hr> wrote:

> Hi.
>
> How to set Hunchentoot encoding to utf-8 ?
>
> Thanks
>
> _______________________________________________
> 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/20110309/26bf767f/attachment.html>


More information about the Tbnl-devel mailing list