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

Please respond to
"Batik Users" <[EMAIL PROTECTED]>

To
Batik Users <[EMAIL PROTECTED]>
cc
Subject
Re: How do I display unicode (non-ascii) characters using SVGGraphics2D?





Jody Schofield wrote:
> I'm trying to create an SVG file using the SVGGraphics2D so that I get the
> following:
>
> <text ...>&#xAB;Label&#xBB;</text>
>
> i.e. <<Label>>
>
> The << and >> are single characters.  When I call drawString(
> "&#AB;Label&#BB", x, y );  I get <text ...>&amp;#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]


Reply via email to