[Helma-user] changing encoding for helma.File
Rainer Rynesch
Rainer.Rynesch at MANOVA.at
Tue Jan 8 11:24:31 CET 2008
Hello,
you could change the default encoding
put
-Dfile.encoding=YOUR_ENCODING
in JAVA_OPTS
in helma.conf
Rainer
> -----Ursprüngliche Nachricht-----
> Von: helma-user-bounces at helma.org
> [mailto:helma-user-bounces at helma.org] 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
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
More information about the Helma-user
mailing list