[hunchentoot-devel] Using utf-8 strings with with-html macro.
Victor Kryukov
victor.kryukov at gmail.com
Sat Mar 17 05:42:03 UTC 2007
Hello list,
I'm trying to output some cyrillic letters on the web page like this:
(setf *hunchentoot-default-external-format*
(flex:make-external-format :utf-8 :eol-style :lf))
(defun main-page ()
(setf (content-type) "text/html; charset=utf-8")
(with-html
(:html
(:head (:title "Test page"))
(:body
(:h2 "Main page")
(:p "Русский тест") ; Cyrillic letters - "Russian test"
))))
but the resulted page is empty. The lisp file itself in utf-8 coding
system. Am I missing something?
My system is Ubuntu 2.6.17, sbcl 1.0.3.38, hunchentoot 0.7.2
Thanks a lot,
Victor Kryukov
http://antlook.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20070317/a5ce6c78/attachment.html>
More information about the Tbnl-devel
mailing list