<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sebastian,<br>
<br>
thank you for your tip.<br>
<br>
Michal<br>
<br>
Sebastian Sastre napsal(a):
<blockquote
cite="mid:!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAx5oTyKKcHEiH5jLobrYqEMKAAAAQAAAAP08NBRAkdUiUMShWBJ7rQgEAAAAA@seaswork.com"
type="cite">
<pre wrap="">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
</pre>
<blockquote type="cite">
<pre wrap="">-----Mensaje original-----
De: <a class="moz-txt-link-abbreviated" href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>
[<a class="moz-txt-link-freetext" href="mailto:seaside-bounces@lists.squeakfoundation.org">mailto:seaside-bounces@lists.squeakfoundation.org</a>] En nombre
de Michal Perutka
Enviado el: Lunes, 22 de Octubre de 2007 11:50
Para: <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
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
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
S pozdravem
Mgr. Michal Perutka
Oddělení informatiky
SRS Brno</pre>
</body>
</html>