I'm using this article as a jumping off point to deploy hunchentoot as a
service:
http://zaries.wordpress.com/2010/11/09/lisp-web-server-from-scratch-using-hunchentoot-and-nginx/
But I'm having an encoding issue. When I start this app from my personal
account, or even the system user that is used by the
'/etc/init.d/hunchentoot start' script, everything works fine.
However, when I start hunchentoot as a server, and attempt to output one
particular name via db query and xml output, I get this:
4: ((FLET #:LAMBDA769)
#<TYPE-ERROR
expected-type: BASE-CHAR datum: #\LATIN_CAPITAL_LETTER_A_WITH_TILDE>)
.
.
.
15: (REPLACE "JIM" "JIMÃNEZ, ANGELA")
16: (XML-EMITTER::WRITE-ESCAPED
"JIMÃNEZ, ANGELA"
#<SB-IMPL::STRING-OUTPUT-STREAM {CD0D891}>)
17: (XML-EMITTER:SIMPLE-TAG "opt" "JIMÃNEZ, ANGELA" (("val" 783)) NIL)
Even though this form:
(format t "Encoding~%")
(format t "~A~%" (sb-impl::default-external-format))
Outputs:
Encoding
UTF-8
because I have this:
LC_CTYPE=en_US.UTF-8; export LC_CTYPE
in the 'start-hunchentoot' script called by the /etc/init.d/hunchentoot
script.
What other encoding settings should I check to figure out the discrepancy?
|