You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Enke Michael <Mi...@wincor-nixdorf.com> on 2002/02/06 15:00:49 UTC

Unicode in Strings?

Hi,
maybe this is not the right forum, but probably interesting here too.
I used for the "Euro-sign" (new european currency) this construct:
String cur = "&#x20AC;";
This was working for JDK from IBM 1.3.0
Now I installed Suns 1.3.2 and this gives me an error.
Here I have to use:
String cur = "\u20AC";
This also works for IBM's JDK.

Is this both (in principle) ok or should the first notation be avoided?

Regards,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org