[Seaside] download content & encoding
Sven Van Caekenberghe
sven at beta9.be
Fri Nov 25 12:37:38 UTC 2011
Johan,
On 25 Nov 2011, at 10:35, Johan Brichau wrote:
> response
> attachmentWithFileName: 'nextplan',Date today yyyymmdd,'.csv';
> contentType: ((WAMimeType main: 'text' sub: 'csv')
> charset: 'utf-16');
> binary.
> converter := UTF16TextConverter new useLittleEndian: true; useByteOrderMark: true.
> response nextPutAll: ((String streamContents: [:str |
> self exportCSVFor: coll on: str]) convertToWithConverter: converter) asByteArray]];
Just out of curiosity: why did you chose to encode using UTF-16 instead of the much more common, quasi standard UTF-8 ?
Sven
More information about the seaside
mailing list