mmm....... NumebrFormat.getCurrencyInstance() Locale defaultLocale = new Locale("fr", "FR", "EURO");
NumberFormat nf = NumberFormat.getCurrencyInstance(defaultLocale); String formattedValue = nf.format(value); System.out.println(formattedValue); Try then ..... new String(formattedValue.getBytes("ISO-8859-1")); or ..... new String(formattedValue.getBytes("UTF-8")); etc: http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html Let me know. kiuma On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote:
The € is comming from the java currency format object: NumebrFormat.getCurrencyInstance(); Cheers, Ron Andrea Chiumenti wrote: > is your java src in UTF-8 ? > What if you hardcode € into your teplate ? does it correctly display ? > and what if you put into java src public String getEuro() {return "€";} > and then into <div jwcid="@Insert" value="ognl:euro"/> ? > > On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: > >> >> Andrea Chiumenti wrote: >> > try ISO-8859-15, what happen ? >> >> nothing changes :( >> >> > and is fomrat really what you have on src ? If so correct with format >> >> no, fomrat was just a typo in the posting. >> >> > kiuma >> > >> > On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: >> > >> >> >> >> Hi all, >> >> I am using >> >> <span jwcid="@Insert" value="ognl:sum" fomrat="ognl:currencyFormat"> >> >> </span> >> >> >> >> the currency format is a java standard currency format, but the Euro >> >> symbol is not inserted properly so one gets a ¤ instead of € - >> >> >> >> any idea why and how to change that? >> >> >> >> the page includes the standard >> >> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> >> >> >> >> which is generated by the Shell component. >> >> >> >> Cheers, >> >> Ron >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]