[opencms-dev] German Umlauts in cms.readFile()
Florian Hopf
hopf at synyx.de
Thu May 4 16:13:57 CEST 2006
Hi,
> I've got a plain-text-file with a list of strings I want to process in a JSP. When I call cms.readFile("/path/to/myfile/") I get the content of the file, but german umlauts are not delivered correctly. Ä, Ö, Ü are all the same Ã.
> Anybody encountered this issue before?
> Best regards,
One last guess: Try
CmsEncoder.createString(cms.readFile(fileName).getContents(),
OpenCms.getSystemInfo().getDefaultEncoding());
HTH
Flo
>
>
--
/**
* Florian Hopf
* Synyx GmbH & Co. KG
* phone +49(0)721 9118303
* eMail hopf at synyx.de
* www http://www.synyx.de
* irc irc.synyx.de
*/
More information about the opencms-dev
mailing list