[Seaside] Download in Cp1250
ssastre at seaswork.com
Mon Oct 22 19:32:26 UTC 2007
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,
> -----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
> 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')
> text: 'Download...'.
> Can anybody help me ?
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside