Re: Euro Symbol Localisation

2006-05-05 Thread Brian Long
That worked a treat, thanks! /Brian.

Re: Euro Symbol Localisation

2006-05-05 Thread Sam Gendler
Try compiling and running this in your production environment to see what your defaultCharset is set to. As far as I can tell, there is NO way to modify it after the JVM has started up. import java.nio.charset.Charset; public class charset { public static void main(String[] args) { Sys

Re: Euro Symbol Localisation

2006-05-05 Thread Sam Gendler
Have you guys tried just using "-Dfile.encoding=UTF-8" when you run the jvm which will run your app server (include it in JAVA_OPTS if you run tomcat). That causes java to use UTF-8 as the charset for all incoming and outgoing content by default. Otherwise, you have to explicitly set the charset

Re: Euro Symbol Localisation

2006-05-05 Thread Brian Long
Hi Lubos, I received your suggested 'filter' solution a couple of months ago in response to a problem I was having with tapestry and UTF-8, I didn't use it afterwards as I just used an image instead of the desired text, but now that I'm internationalising my web application, I'd like to fix this

Re: Euro Symbol Localisation

2006-01-31 Thread Lubos and Alena Pochman
I had the same problem with Tapestry 3.02 and I think it is still in 4.0. Somehow Tapestry doesnt' set up content type properly. Looking at html source from Tapestry, the for content type is not the first but the second in the . I have read somewhere, that content type must be the first in oth

Re: Euro Symbol Localisation

2006-01-31 Thread Jérôme BERNARD
Usually you should suspect somewhere a wrong encoding used through the flow of your system. Check the following points: - is your database storing content in UTF-8 (should you use one)? - are your Tapestry templates written in UTF-8 and specifying a proper content type (<*meta* http-equiv="Content

Re: Euro Symbol Localisation

2006-01-31 Thread Brian Long
Jérôme, Good question, I'm using XP SP2 and the file was created from eclipse using new file -> myproject.properties. I went back and checked to see what encoding eclipse was using for the *.properties files and found that these are encoded as ISO-8859-1by default, so I changed this to UTF-8. Stop

Re: Euro Symbol Localisation

2006-01-31 Thread Andreas Andreou
If you try this, use: >> >> Use the correct html. I think it is something like: |€ >> >> ||Gary| >> || >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > Sorry thats:

Re: Euro Symbol Localisation

2006-01-31 Thread Jérôme BERNARD
Are you really sure that you .properties file is written using an UTF-8 encoding and nothing fancy like a windows encoding? Regards, Jérôme. On 1/31/06, Brian Long <[EMAIL PROTECTED]> wrote: > > Martin, > > No joy, same problem, € becomes ? and "€" becomes "€" . . . > > Looks like I'll be us

Re: Euro Symbol Localisation

2006-01-31 Thread Brian Long
Martin, No joy, same problem, € becomes ? and "€" becomes "€" . . . Looks like I'll be using EURO (so long as tapestry doesn't try convert it into YEN)! Thanks, Brian. On 1/31/06, Martin Strand <[EMAIL PROTECTED]> wrote: > Perhaps you need to specify the *.properties file encoding. Put thi

Re: Euro Symbol Localisation

2006-01-31 Thread Brian Long
Gary, same problem really, when tapestry sees "€" in the .properties file it converts the ampersand to & so I get something like the following in my .html page The price is € same problem for € etc. So I have to figure out how to escape the € symbol (or the & symbol) or tapestry will conti

Re: Euro Symbol Localisation

2006-01-31 Thread Martin Strand
Perhaps you need to specify the *.properties file encoding. Put this in your *.application config: --Martin On Tue, 31 Jan 2006 16:00:07 +0100, Brian Long <[EMAIL PROTECTED]> wrote: Gary, same problem really, when tapestry sees "€" in the .propertiesfile it converts the ampersand to &

Re: Euro Symbol Localisation

2006-01-31 Thread Gary Pampara
Gary Pampara wrote: Brian Long wrote: Hi, I'm using .properties files in WEB-INF for localisation and using on the html pages to generate the relevant text for the users locale. I am however having a small problem at the moment with the euro symbol €, when this is placed in the .properties fil

Re: Euro Symbol Localisation

2006-01-31 Thread Gary Pampara
Brian Long wrote: Hi, I'm using .properties files in WEB-INF for localisation and using on the html pages to generate the relevant text for the users locale. I am however having a small problem at the moment with the euro symbol €, when this is placed in the .properties file, it is rendered as