Re: changing encoding for helma.File

"Rainer Rynesch" <[email protected]> Tue, 8 Jan 2008 11:24:31 +0100
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>

Hello,
 you could change the default encoding 
put
-Dfile.encoding=YOUR_ENCODING
in JAVA_OPTS
in helma.conf


Rainer
 

> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von Anton Pirker
> Gesendet: Dienstag, 08. Jänner 2008 11:19
> An: Helma User Mailing List
> Betreff: [Helma-user] changing encoding for helma.File
> 
> Hello List!
> 
> I am reading textfiles with readln() from helma.File().
> The Problem is, that the textfiles are in utf8. I tried to 
> change the encoding in app.properties with charset = UTF-8 
> (and charset = UTF8, i am never sure wich one it is)
> 
> But no mather what i tried, the words look like scrambled eggs.
> In helma.File() i found out, that javas FileReader() is used 
> to read the file, which uses the default encoding. There is 
> no chance to change the encoding.
> 
> How can i read utf8-files?
> 
> 
> thanks in advance,
> Anton
> _______________________________________________
> Helma-user mailing list
> [email protected]
> http://helma.org/mailman/listinfo/helma-user
>