From: Mark Thomas Date: 2008-09-19T02:12:25+09:00 Subject: Re: How to clean an xml files from non-utf-8 chars? On Sep 18, 9:25 am, Krzysieq wrote: > [Note:  parts of this message were removed to make it a legal post.] > > Unfortunately, there's no way telling the original encoding. I would rather > go for some method of removing / substituting the chars that don't belong > there, but the method first suggested by Brian doesn't seem to work for some > reason. Does anyone have another option? Try the iconv solutions with latin-1 (iso-8859-1) as the From. That's as close as you can get to a one-byte "anything-goes" encoding. -Mark.