Re: changing encoding for helma.File
Anton Pirker <[email protected]> Tue, 08 Jan 2008 11:39:04 +0100
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Rainer! Rainer Rynesch schrieb: > > Hello, > you could change the default encoding > put > -Dfile.encoding=YOUR_ENCODING > in JAVA_OPTS > in helma.conf Thanks for the quick response! Works like a charm! Anton > > > 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 >> > _______________________________________________ > Helma-user mailing list > [email protected] > http://helma.org/mailman/listinfo/helma-user