Re: encoding/decoding clozure strings to/from UTF-8

Martin Simmons <[email protected]> Mon, 5 Jan 2015 16:00:03 GMT
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
>>>>> On Wed, 31 Dec 2014 13:50:57 +0100, Karsten Poeck said:
> 
> On 30.12.14 23:57, Mark Klein wrote:
> > (http:export-url  #u"/test"
> >                   :computed
> >                   :response-function #'test)
> 
> That works fine for me, but only if I define the stream that is returned 
> by the accept-connection like this:
> 
> (ccl:accept-connection socket :wait t :stream-args '(:external-format 
> :utf-8))
> 
> Since this is now a discussion about cl-http and not about Clozure 
> Common Lisp, perhaps we continue the discussion on the cl-http mailing list.
> 
> For me the key issue is now whether it is a good idea to use utf-8 
> streams for a full response header/body.
> 
> In a private mail to us Rainer said that he doubted that - at least I 
> understood it that way - and he probably has good reasons.

I think Rainer in correct.  In general, the external format of body depends on
its contents and maybe the request headers, so you can't force it to be utf-8
when the connection is accepted.

__Martin

_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl