From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Newsgroups: gmane.emacs.help Subject: Re: slime and lisp buffer encoding Date: Fri, 7 Aug 2009 03:23:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2b178719-3db9-4bde-98b0-3ce087614ca6@v23g2000pro.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249641710 7907 80.91.229.12 (7 Aug 2009 10:41:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2009 10:41:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 07 12:41:43 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MZMtJ-0006Xz-0H for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 12:41:41 +0200 Original-Received: from localhost ([127.0.0.1]:46317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZMtI-0006Z8-BB for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 06:41:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v23g2000pro.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 61.51.239.176 Original-X-Trace: posting.google.com 1249640619 32425 127.0.0.1 (7 Aug 2009 10:23:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Aug 2009 10:23:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v23g2000pro.googlegroups.com; posting-host=61.51.239.176; posting-account=VidhwQoAAAClDZCDm61050TEZVFYPse- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_8; en-us) AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171750 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66929 Archived-At: On Aug 7, 5:52=A0pm, Eric Abrahamsen wrote: > Hi, > > I'm using Emacs and slime to do a bit of hunchentoot (lisp web server) = =A0 > development, and I'm running into an encoding problem. I don't know =A0 > which of the links in the chain is causing the problem, so I hope =A0 > someone here will see what's going... > > Basically, using hunchentoot (with cl-who for html templating) =A0 > involves writing the html templates directly into the source code, and = =A0 > I'm discovering that I can't type utf-8 text into these source files. =A0 > Compiling a defun with unicode in it results in an encoding error (I =A0 > believe thrown by slime as the defun gets sent to the repl). > > I have set everything I can set (file, keyboard, subprocess IO) to =A0 > utf-8-unix. The weird thing is, I can type a Latin accented a (=E0) into = =A0 > the source without trouble. Hunchentoot seems to use a CONTENT-TYPE of = =A0 > iso-8859-1 by default, in which case the =E0 shows up fine in the =A0 > browser. If I set content type to utf-8, my browser garbles the =E0. So = =A0 > my lisp strings must be encoded as iso-8859-1, but how did they get =A0 > that way? And how do I make them utf-8? I'll answer my own question: They got that way because iso-8859-1 is the default string encoding for OpenMCL. Altering inferior-lisp- program to add the option "-K utf-8" after the executable results in a lisp that runs in utf-8 by default. Apologies for the noise. E > > I'm using emacs CVS, slime 3.0 alpha, Mac Leopard, ccl version 1.2. =A0 > Hope someone's got a pointer (if only to the slime or hunchentoot =A0 > mailing lists). > > Thanks, > Eric