[Seaside] Download in Cp1250

Philippe Marschall philippe.marschall at gmail.com
Tue Oct 23 07:31:55 UTC 2007


2007/10/23, Michal Perutka <michal.perutka at srs.cz>:
> Philippe,
>
> thank you very much. Now it is clear, all text responses are converted
> to utf-8 in WAKomEncoded39>>contentsOfResponse:

Yeah, maybe it would be better to not convert responses who have a
content type set different than utf-8.

Cheers
Philippe

> Cheers
> Michal
>
> Philippe Marschall wrote:
> > That's kind of a problem. Do I see it correctly that your whole
> > application is utf-8 just this download must be Cp1250? Would it be an
> > option to have a WAKom running on a different port just for this
> > download?
> >
> > Philippe
> >
> > 2007/10/22, Michal Perutka <michal.perutka at srs.cz>:
> >
> >>  WAKomEncoded39
> >>
> >>  Philippe Marschall wrote:
> >>  2007/10/22, Michal Perutka <michal.perutka at srs.cz>:
> >>
> >>
> >>  Hi,
> >>
> >> I need to download a text file encoded in cp1250, but the resulting file
> >> is allways in UTF-8.
> >>
> >> stream := (MultiByteFileStream fileNamed: 'TEST.TXT') converter:
> >> CP1250TextConverter new.
> >> html anchor
> >>  callback: [self session returnResponse: (WADocumentHandler
> >> document: stream mimeType: 'text/plain' fileName: 'TEST.TXT') response];
> >>  text: 'Download...'.
> >>
> >> Can anybody help me ?
> >>
> >>  Do you run WAKom or WAKomEncoded*?
> >>
> >> Cheers
> >> Philippe
> >> _______________________________________________
> >>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list