Hey Archie,
I tried your suggestion but that didn't seem to help either. It just displays "\u00AB...".
thanks,
Jody
Archie Cobbs <[EMAIL PROTECTED]>
07/14/2004 03:32 PM
|
|
Jody Schofield wrote:
> I'm trying to create an SVG file using the SVGGraphics2D so that I get the
> following:
>
> <text ...>«Label»</text>
>
> i.e. <<Label>>
>
> The << and >> are single characters. When I call drawString(
> "&#AB;Label&#BB", x, y ); I get <text ...>&#xAB...
The ampersand "escape" is an XML thing, not a Java thing.
In Java you can use \u for non-ASCII characters.
So try something like this..
drawString("\u00ABLabel\u00BB");
Not sure if << and >> are Unicode characters though. You may need
to use different corresponding Unicode values.
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]