[Helma-user] Skin files and character encoding
tobias.schaefer at orf.at
tobias.schaefer at orf.at
Thu Jan 10 09:51:37 CET 2008
Thanks for the hints, maks.
However, the creation of the skin files is not the real issue since I
can edited them via web form, anyway.
And I can rule out that the characters are ill-transformed when saving
the form data to file because the skin files look ok in a UTF-8 capable
text editor (TextMate) as well as in Eclipse after setting the text
encoding to UTF-8 as described by you.
My problem is still that skin files containing UTF-8 characters are
not displayed correctly when rendered as skins by Helma -- unless
I add the -Dfile.encoding=UTF8 switch.
And adding this switch seems to obsolete the skinCharset property,
doesn't it? Except for me having misunderstood this property...
Ciao,
tobi
-----Original Message-----
From: helma-user-bounces at helma.org on behalf of Maksim Lin for technical support mailling lists
Sent: Thu 10-Jan-08 02:02
To: Helma User Mailing List
Subject: Re: [Helma-user] Skin files and character encoding
oh and just one last thing, I just found that you can set the default encoding in eclipse using Preferences->Workspace-Text Encoding (mine was set to default to cp1252 for some reason), but once you set it to UTF8 you can create the file as I described directly using eclipse and the beolow file displays correctly as:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
???
<br/>
ent:
<br/>
Some bad UTF-8 characters:
</body>
</html>
> -----Original Message-----
> From: helma-user-bounces at helma.org
> [mailto:helma-user-bounces at helma.org] On Behalf Of Maksim Lin
> for technical support mailling lists
> Sent: Thursday, 10 January 2008 11:07
> To: Helma User Mailing List
> Subject: Re: [Helma-user] Skin files and character encoding
>
> 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:
> <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: helma-user-bounces at helma.org
> > [mailto:helma-user-bounces at helma.org] On Behalf Of
> > tobias.schaefer at orf.at
> > Sent: Thursday, 10 January 2008 07:30
> > To: helma-user at helma.org
> > 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
Helma-user at helma.org
http://helma.org/mailman/listinfo/helma-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4695 bytes
Desc: not available
Url : http://helma.org/pipermail/helma-user/attachments/20080110/ae02b8cd/attachment.bin
More information about the Helma-user
mailing list