From: Christian Neukirchen Date: 2005-10-22T20:44:54+09:00 Subject: Re: UTF8 Validator (xml) ? Peter Fitzgibbons writes: > Hello all, > > I have a Rails app that is outputting xml for use with a Xerces > org.apache.xerces.impl.XMLEntityScanner. > First, if you happen to know an active forum for Xerces, please tell, > > Second, the error messaging from the scanner tells me that I have a "Invalid > byte 1 of 1-byte UTF-8 sequence." > That's nice, but I have no way to tell _what_ byte is in violation. > > SO, if you have any reference to what might qualify as a "UTF8 Validator", > please tell. Clearly Java and Ruby have different definitions of UTF8. > > BTW: the file I'm testing wtih loads back into REXML::Document just fine. Idea: take the string, sanitize it with Iconv + UTF-8//IGNORE, then byte-wise compare. > Thanks for your advice! > Peter Fitzgibbons -- Christian Neukirchen http://chneukirchen.org