Re: Skin files and character encoding

"Maksim Lin for technical support mailling lists" <[email protected]> Thu, 10 Jan 2008 11:07:03 +1100
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
Hi Tobi,

The only way I could get this to work was going to a webpage (http://www.tony-franks.co.uk/UTF-8.htm) which had the euro char on it, but defined using a html entity code, copying that into a windows text editor (http://www.scintilla.org/SciTE.html) set to UTF8 encoding editing the skin file. opening the file in eclipse however shows:

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </head>
    <body>
        €€€      
        <br/>
        ent: &#128;
        <br/>
        Some bad UTF-8 characters: €€
    </body>
</html> 

Which seems to default to be because eclipses defaulting std western char encoding.
I've also attached the skin file but not sure if it will go through the email system ok.
Hope that helps...

Maks.

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> [email protected]
> Sent: Thursday, 10 January 2008 07:30
> To: [email protected]
> Subject: [Helma-user] Skin files and character encoding
> 
> 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);
> }
> 
> 
>

_______________________________________________
Helma-user mailing list
[email protected]
http://helma.org/mailman/listinfo/helma-user
utf8.skin (application/octet-stream, 256 B) - not displayed