This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] XML declaration error


Tristan Fiedler <fiedler@cshl.edu> writes:

> Hi All,
> 
> Using the XML aware editor jEDIT, which I have been using for a while,  
> I am getting an error I can't easily debug :
> asptext.xml:1:java.io.UTFDataFormatException: Invalid byte 2 of 2-byte  
> UTF-8 sequence.
> 
> Here is the header of my file.  The error indicates the first line is  
> the problem :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4CR2//EN"

Are you sure that the document is actually encoded in UTF-8?
Have you tried experimenting with changing the value of the
"encoding" pseudo-attribute in the XML declaration? For example,
try changing it to encoding="ISO-8859-1" or something. Or maybe
run iconv on the file and see what happens; for example;

  iconv -f ISO-8859-1 -t UTF-8 foo.xml

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]