Skip to main content

RE: [JAVAHELP] Quote marks in TOC.XML file

No replies
Anonymous

Thomas, there is an open bug at SUN for this problem: http://developer.java.sun.com/developer/bugParade/bugs/4926716.html

We use ISO-8859-1 encodings for the European languages and UTF-8 for the double-byte languages. We noticed this problem in the German TOC with the character ü followed by a ". Once we put the space in, it worked correctly. I don't know why we use two encodings for different sets of languages, maybe because the original JavaHelp config files were ISO-8859-1 encodings.

-----Original Message-----
From: Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] On Behalf Of Stephan Schlecht
Sent: Tuesday, May 04, 2004 6:15 AM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] Quote marks in TOC.XML file

What always works without the need of using unwanted blanks is the UTF-8 encoding. The first line of your XML file would look like <?xml version='1.0' encoding='UTF-8'?>.

Then convert the XML file (e.g. with a text editor that supports different encodings) from the current encoding (most likely
ISO-8859-1) to UTF-8.

In the UTF-8 TOC file the quotes would look like �?? and �?? There is no need for additional blanks, and the tilted quotes would be displayed correctly in JavaHelp.

Stephan
--
Software 7 GmbH
*** Helen 1.5, the JavaHelp 2.0 Authoring Tool *** http://www.software7.biz

At 11:54 04.05.2004 +0200, you wrote:
>Hi,
>
>thanks
>
>" is no problem, the problems are
>
>” and „ (the tilted ones)
>
>funny though, it seems adding a blank before and after the entities
>solves the problem, then it displays. Just that you have the blank
>then.
>
>Thank You, Thomas
>
>
>Stephan Schlecht schrieb:
>
> > TOC.xml is a XML file, therefore you have to use character entities,
> > e.g. for quotes use "
> >
> > If you use character entities, the quotes are displayed like
> > expected (because then TOC.xml is a valid XML file).
> >
> > Hope this helps,
> >
> > Stephan
> > --
> > Software 7 GmbH
> > *** Helen 1.5, the JavaHelp 2.0 Authoring Tool ***
> > http://www.software7.biz
> >
> > At 10:19 04.05.2004 +0200, you wrote:
> > >Hi,
> > >
> > >We have a big JavaHelp project (FrameMaker >>> WWP >>> JavaHelp)
> > >The FrameMaker Files are translated by a professional agency into
> > >German. Sometimes we get the typical German quote marks in the TOC.
> > >As soon as those quote marks appear in the TOC, JavaHelp will not
> > >start anymore -if I take the quote marks out of the TOC, everything
> > >is fine. Those quote marks are no problem in content.
> > >Any ideas?
> > >
> > >Thomas Kr�hner
> >
> >
> **********************************************************************
> **********
> >
> > You may leave the list at any time by sending message with no
> > subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> > LISTSERV@JAVA.SUN.COM. Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by www.cmo.de, and is
> > believed to be clean.
>
>--
>---------------------------------------------------------------------
>torborg & hahn GbR - Produktdokumentationen
>Ilsahl 5 - 24536 Neum�nster
>Tel. 04321-306 352 - Fax. 04321-306 351
>www.torborg-hahn.de
>----------------------------------------------------------------------
>
>***********************************************************************
>*********
>
>You may leave the list at any time by sending message with no subject
>and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>Archives are available at
>http://archives.java.sun.com/archives/javahelp-interest.html.
>Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Stephan Schlecht
--
Software 7 GmbH Tel: +49 941-7979682
Ludwig-Eckert-Str. 8 Fax: +49 941-7979683
93049 Regensburg http://www.software7.biz

********************************************************************************

You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.