You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Reinhold Gruber <R....@deltavista.com> on 2009/02/26 18:22:04 UTC
Euro symbol with ISO-8859-1 output
Hi!
MarkupWriter replaces € with an ? if ISO-8859-1 HTML output is configured via configuration.add(SymbolConstants.CHARSET, "ISO-8859-1");
public class Test {
@BeginRender
public void render(MarkupWriter writer) {
String money = NumberFormat.getCurrencyInstance(java.util.Locale.GERMANY).format(1.0);
writer.write(money);
writer.writeRaw(money);
}
}
produces
1,00 ?1,00 ?
Does anybody knows a workaround?
Thanks
Reinhold Gruber
Software Development
___________________________________________________
Deltavista GmbH
Diefenbachgasse 35; A-1150 Wien
Firmenbuchgericht und -nummer: Handelsgericht Wien, 200570g
Sitz der Gesellschaft: Wien
DVR: 1062107
http://www.deltavista.com <http://www.deltavista.com/>
Tel: +43 1 897 42 44 17
Fax: +43 1 897 42 44 31
mailto:r.gruber@deltavista.com <ma...@deltavista.com>
___________________________________________________
RE: Euro symbol with ISO-8859-1 output
Posted by Reinhold Gruber <R....@deltavista.com>.
Thanks, for the quick reply. UTF-8 ist not possible but I will give ISO-8859-15 a try.
I did know that the euro is not part of ISO-8859-1 but Tapestry 3 replaced it by the numeric entity €
I expected the same behaviour in T5.
Regards,
Reinhold
___________________________________________________
-----Original Message-----
From: Markus Joschko [mailto:markus.joschko@gmail.com]
Sent: Donnerstag, 26. Februar 2009 20:05
To: Tapestry users
Subject: Re: Euro symbol with ISO-8859-1 output
ISO-8859-1 does not contain the € symbol. You might want to switch to
ISO-8859-15 or UTF-8
If this is not possible you can give the € entity a try.
More information around the euro symbol can be found here:
http://www.cs.tut.fi/~jkorpela/html/euro.html
Regards,
Markus
On Thu, Feb 26, 2009 at 6:22 PM, Reinhold Gruber <R....@deltavista.com> wrote:
> Hi!
>
> MarkupWriter replaces € with an ? if ISO-8859-1 HTML output is
> configured via configuration.add(SymbolConstants.CHARSET,
> "ISO-8859-1");
>
> public class Test {
>
> @BeginRender
> public void render(MarkupWriter writer) {
> String money =
> NumberFormat.getCurrencyInstance(java.util.Locale.GERMANY).format(1.0)
> ;
> writer.write(money);
> writer.writeRaw(money);
> }
> }
>
> produces
>
> 1,00 ?1,00 ?
>
> Does anybody knows a workaround?
>
> Thanks
>
>
> Reinhold Gruber
> Software Development
> ___________________________________________________
>
> Deltavista GmbH
> Diefenbachgasse 35; A-1150 Wien
> Firmenbuchgericht und -nummer: Handelsgericht Wien, 200570g Sitz der
> Gesellschaft: Wien
> DVR: 1062107
> http://www.deltavista.com <http://www.deltavista.com/>
>
> Tel: +43 1 897 42 44 17
> Fax: +43 1 897 42 44 31
> mailto:r.gruber@deltavista.com <ma...@deltavista.com>
> ___________________________________________________
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Euro symbol with ISO-8859-1 output
Posted by Markus Joschko <ma...@gmail.com>.
ISO-8859-1 does not contain the € symbol. You might want to switch to
ISO-8859-15 or UTF-8
If this is not possible you can give the € entity a try.
More information around the euro symbol can be found here:
http://www.cs.tut.fi/~jkorpela/html/euro.html
Regards,
Markus
On Thu, Feb 26, 2009 at 6:22 PM, Reinhold Gruber
<R....@deltavista.com> wrote:
> Hi!
>
> MarkupWriter replaces € with an ? if ISO-8859-1 HTML output is configured via configuration.add(SymbolConstants.CHARSET, "ISO-8859-1");
>
> public class Test {
>
> @BeginRender
> public void render(MarkupWriter writer) {
> String money = NumberFormat.getCurrencyInstance(java.util.Locale.GERMANY).format(1.0);
> writer.write(money);
> writer.writeRaw(money);
> }
> }
>
> produces
>
> 1,00 ?1,00 ?
>
> Does anybody knows a workaround?
>
> Thanks
>
>
> Reinhold Gruber
> Software Development
> ___________________________________________________
>
> Deltavista GmbH
> Diefenbachgasse 35; A-1150 Wien
> Firmenbuchgericht und -nummer: Handelsgericht Wien, 200570g
> Sitz der Gesellschaft: Wien
> DVR: 1062107
> http://www.deltavista.com <http://www.deltavista.com/>
>
> Tel: +43 1 897 42 44 17
> Fax: +43 1 897 42 44 31
> mailto:r.gruber@deltavista.com <ma...@deltavista.com>
> ___________________________________________________
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org