[Seaside] Download in Cp1250

Michal Perutka michal.perutka at srs.cz
Mon Oct 22 14:49:30 UTC 2007


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



More information about the seaside mailing list