OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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

smime.p7s



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]