From: <[EMAIL PROTECTED]> > I get the following exception when I try to read a file containing the euro > symbol: > > org.dom4j.DocumentException: invalid byte 1 of 1-byte UTF-8 sequence (0x80) > Nested exception: invalid byte 1 of 1-byte UTF-8 sequence (0x80) > at org.dom4j.io.SAXReader.read(SAXReader.java:342) > at org.dom4j.io.SAXReader.read(SAXReader.java:218) > at org.dom4j.io.SAXReader.read(SAXReader.java:207) > > I know that the symbol has been encoded properly because when I use Java's > BufferedReader to read in the file, the symbol is displayed correctly. > Any ideas?
Whats you XML document look like? Its probably to do with the encoding of the XML document. Do you include an encoding <?xml version="1.0" encoding="..."?> section? James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user