Howard, I have had this same problem at times. You have two problems really. 1. Where in you XML document is the incorrect byte. 2. What is it supposed to be.
=== 1. The way to find the byte is to make a copy of your document first. Use the copied version for finding the byte. Split your document into halfs each time and then parse it. You will be able in this way to find the byte. 2. You need to know what the correct byte should be. This you will have to find out with a correct document. When you get it you can put the text into an HTML utf-8 document and read it in IE6. Then you can go to the unicode page and find the correct NCR for it and fix the problem. (Check out the Java tables you can search for character by byte, and you can toggle the BASE 10 option and see the numeric character reference value -- &# XXX ; ) However, if you are processing a document in a language you don't know, then you may need some help. My suggestions, Mike Ferrando Washington, DC --- [EMAIL PROTECTED] wrote: > Hi, > > When I run FOP, I get the following error... > > "Invalid byte 2 of 2 byte UTF-8 sequence" > > ...followed by an extensive trace. > > I have a pretty clear idea of what it mean but not what to do about > it!! > The following problems spring to mind... > * What file is the invalid sequence in? Is it my xml (input) file > or the > xsl file? > * Even if I identify the file, where/which character is causing the > problem > * how do I fix it :-) > > I guess what I am saying is that the error message is getting > towards > useless... > > Has anybody got any suggestions on how to proceed with this? > > Any help much appreciated > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
