tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Knystautas <>
Subject Re: Fmt:formatNumber and Euro symbol
Date Sat, 23 Aug 2003 19:30:37 GMT
The JSTL doesn't supporting converting the euro character to the 
HTML-safe version (converting it to &euro; as you do in your 
workaround).  I don't know if changing any encoding would really help 
since I think ultimately you *want* &euro; to be what's sent.

I would suggest you send your issue to the spec to be considered for a 
future JSTL version.  For now you'll have to use your workaround.

Serge Knystautas
Lokitech >> software . strategy . design >>
p. 301.656.5501

Carlos wrote:
> Hi
> I've tried to format a price in euros with
> <fmt:formatNumber value="${product.price}" type="currency"
> currencyCode="EUR"/>
> But instead of the euro symbol I get a question mark (?)
> I've tried to set the encoding ISO-8859-15 in many places
> - jsp page
> - jsp layout page
> - controller
> But none of them worked. Maybe I did it wrong, maybe that's not the
> solution?
> The workaround I had to wrote to get what I expected was:
> <fmt:formatNumber value="${product.price}" minFractionDigits="2"/> &euro;
> And this worked, but I think there shoould be a better solution
> Please help.

View raw message