[prev in list] [next in list] [prev in thread] [next in thread] 

List:       graphviz-interest
Subject:    [graphviz-interest] Dot rejects iso-8859-1 accented characters
From:       john.currier () gmail ! com (John Currier)
Date:       2005-10-28 20:35:06
Message-ID: ba93fe320510281728u31637b3bj5eaacc884552c140 () mail ! gmail ! com
[Download RAW message or body]

On 10/28/05, Ryan Schmidt <graphviz-2005@ryandesign.com> wrote:
> 
> On Oct 28, 2005, at 22:09, John Currier wrote:
> 
> > I've got to be doing something wrong this time. I've got a user
> > that submitted a bug where dot gives this error message when it
> > runs into an accented character:
> > Error: not well-formed (invalid token) in line 10
> > 
> > I have no idea how dot is calculating line numbers, but the problem
> > seems to be caused by the ? characters.
> > 
> > The user was running dot 2.6 on Windows XP, and I've reproduced the
> > problem using the attached .dot.
> > 
> > Is there something that I can do? Is this character not in the
> > default UTF-8 charset?
> 
> It is the "?"; it appears on line 10 of the label (not line ten of
> the file).
> 
> The character "?" is of course present in the Unicode character set
> and can be represented in the UTF-8 character encoding. It is not,
> however, represented in UTF-8 by the byte E9 which is how it is
> encoded in your file. E9 is how that character is represented in the
> ISO-8859-1 character encoding. If you want Graphviz to handle it,
> either tell dot to treat the input as ISO-8859-1 by using the -
> Gcharset=iso-8859-1 switch (or by setting charset=iso-8859-1 in the
> dot file), or, preferably, convert your data to UTF-8 before passing
> it to dot.


Thanks Ryan, I'm modifying SchemaSpy to generate UTF-8 based .dots. I think
I need to continue to use ISO-8859-1 for the generated HTML, correct?

Thanks,
John
http://schemaspy.sourceforge.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.research.att.com/pipermail/graphviz-interest/attachments/20051028/09548b72/attachment.htm



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic