forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sjur Moshagen <>
Subject Re: Locating a UTF-8 sequence error?
Date Sun, 30 Jan 2005 14:10:05 GMT
På 29. jan. 2005 kl. 23.27 skrev

> I'm receiving an "Invalid byte 1 of 1-byte UTF-8 sequence" error; can 
> anyone tell me how to locate the offending character(s)?

If you have xmllint installed, just type:

xmllint <FILENAME>

It will give you the exact location of the offending character. I have 
used this method myself to clean a UTF-8 file with some invalid byte 
sequenses - works excellent as long as the number of invalid chars is 


View raw message