From ross@sourcelabs.com Sat Sep 29 03:05:00 2007 From: Ross Jekel To: drakma-devel@common-lisp.net Subject: [drakma-devel] utf-8 question Date: Sat, 29 Sep 2007 00:04:59 -0700 Message-ID: <1919890510.44941191049499223.JavaMail.root@mail-101.colo.sourcelabs.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5001817184341646216==" --===============5001817184341646216== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I'm using Drakma 0.10.1 with AllegroCL 8.1. When I make an http-request to ge= t a wsdl file which returns the response header: Content-Type: text/xml; charset=3Dutf-8 the contents returned are a vector of octets. I got the impression from the e= xamples that it would autosense the content type and return a decoded-string.= Am I doing something wrong? Thanks, Ross --===============5001817184341646216==-- From edi@agharta.de Sat Sep 29 10:10:20 2007 From: Edi Weitz To: drakma-devel@common-lisp.net Subject: Re: [drakma-devel] utf-8 question Date: Sat, 29 Sep 2007 16:10:17 +0200 Message-ID: In-Reply-To: <1919890510.44941191049499223.JavaMail.root@mail-101.colo.sourcelabs.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0823868364408499601==" --===============0823868364408499601== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sat, 29 Sep 2007 00:04:59 -0700 (PDT), Ross Jekel = wrote: > I'm using Drakma 0.10.1 with AllegroCL 8.1. When I make an > http-request to get a wsdl file which returns the response header: > > Content-Type: text/xml; charset=3Dutf-8 > > the contents returned are a vector of octets. I got the impression > from the examples that it would autosense the content type and > return a decoded-string. Am I doing something wrong? No, it should behave as you expect. This what I get (LWW 5.0.2): CL-USER 1 > (setq drakma:*header-stream* *standard-output*) # 2190100B> CL-USER 2 > (drakma:http-request "http://zappa.agharta.de/test.xml") GET /test.xml HTTP/1.1 Host: zappa.agharta.de User-Agent: Drakma/0.10.1 (LispWorks 5.0.2; Windows NT; Windows XP: 5.1 (bu= ild 2600) Service Pack 2; http://weitz.de/drakma/) Accept: */* Connection: close HTTP/1.1 200 OK Date: Sat, 29 Sep 2007 14:00:47 GMT Server: Apache Connection: close Transfer-Encoding: chunked Content-Type: text/xml; charset=3Dutf-8 " =C3=A4=C3=B6=C3=BC. " 200 ((:DATE . "Sat, 29 Sep 2007 14:00:47 GMT") (:SERVER . "Apache") (:CONNECTIO= N . "close") (:TRANSFER-ENCODING . "chunked") (:CONTENT-TYPE . "text/xml; cha= rset=3Dutf-8")) # # T "OK" Do you get the same result with the URL above? (I'll leave it online for testing purposes.) And can you send the headers sent back and forth between Drakma and the server to the mailing list? How does your HTTP-REQUEST call look like? Edi. --===============0823868364408499601==--