[Helma-user] Skin files and character encoding

tobias.schaefer at orf.at tobias.schaefer at orf.at
Wed Jan 9 21:29:48 CET 2008


Hi

I just experienced a confusing issue with character encoding, too:

Trying to display the contents of a skin file encoded with UTF-8 I had to
set the -Dfile.encoding=UTF8 switch in the Java options as suggested by
Rainer Rynesch.

Otherwise I get incorrect output of UTF-8 characters, e.g. something like
€€€€€ instead of five euro symbols...

Of course I have set charset and skinCharset to UTF-8 in app.properties.

Shouldn't this be enough to achieve the correct output?

Could anybody please verify if the test setup below displays correctly
the euro symbols in his browser?

Ciao,
tobi

--

Here's the test setup:


app.properties
--------------
charset = UTF8
skinCharset = UTF8


Global/Foo.skin
---------------
Some UTF-8 characters: €€€€€


Global/Global.js
----------------
Root.prototype.main_action = function() {
   res.write(app.getSkinfilesInPath(res.skinpath).Global.Foo);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://helma.org/pipermail/helma-user/attachments/20080109/153bbb30/attachment.html 


More information about the Helma-user mailing list