[Seaside] Download in Cp1250
Sebastian Sastre
ssastre at seaswork.com
Mon Oct 22 19:32:26 UTC 2007
Hi Michal,
if not mandatory the txt perhaps you can avoid the problem by
downloading it zipped. I've used that for a .txt that was downloaded with
wrong latin characters. Downloading it zipped it conserves encoding. Squeak
has all what is needed to zip things.
maybe that helps,
Sebastian Sastre
> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre
> de Michal Perutka
> Enviado el: Lunes, 22 de Octubre de 2007 11:50
> Para: seaside at lists.squeakfoundation.org
> Asunto: [Seaside] Download in Cp1250
>
> 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 ?
>
> Cheers
> Michal
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list