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

Martin Simmons <[email protected]> Tue, 6 Jan 2015 12:04:27 GMT
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
The LispWorks socket streams don't support external formats, so switching is
not relevant.

__Martin


>>>>> On Mon, 5 Jan 2015 17:25:43 +0100, Rainer Joswig said:
> 
> My UTF-8 extension for CL-HTTP on LispWorks already does the necessary things. It's also used in 'production'.
> 
> I've put in support for Clozure CL. Did a short test and it worked for me.
> 
> While we are at it, @Martin, can I switch encoding of an open stream in LispWorks? Currently the CL-HTTP code does the encoding.
> 
> Regards,
> 
> Rainer
> 
> 
> 
> > Am 05.01.2015 um 17:00 schrieb Martin Simmons <[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] <mailto:[email protected]>
> > https://lists.csail.mit.edu/mailman/listinfo/www-cl <https://lists.csail.mit.edu/mailman/listinfo/www-cl>
> 

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