← Prev in month ← Prev in thread
Next in thread → Next in month →

DOCBOOK: Re: Spanish Text

From
Norman Walsh <>
Date
2002-06-24T17:53:19+00:00
ID
Thread
DOCBOOK: Re: Spanish Text
/ Jamie Smedsmo <> was heard to say:
| I just recieved a Docbook XML document in Spanish.  I'm trying to
| transform the document to HTML with SAXON, as I do with the English
| documents, but it has trouble with the extended ascii characters as
| follows:
|
| <.xml c:/docbook/docbook-xsl/html/mdp.xsl > getstarted-howto.html
| Error at byte 248 of
| file:/C:/cygwin/home/Administrator/mapserver_docs/getstarted-howto_es.xml:
|   Error reported by XML parser: bad continuation of multi-byte UTF-8
| sequence (code: 0x74)
| Transformation failed: Run-time errors were reported
|
| I know that I could have the author replace all the offending
| characters with entity references (&aacute;), but I don't want to do
| this unless it's necessary.  Is there any alternative?

Yes, the document is probably in ISO Latin 1, try adding an explicit
encoding declaration to the top of the file:

  <?xml version='1.0' encoding='ISO-8859-1'?>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <>      | More men become good through
http://www.oasis-open.org/docbook/ | practice than through
Chair, DocBook Technical Committee | nature.--Democritus of Abdera
← Prev in month ← Prev in thread
Next in thread → Next in month →