http://qs321.pair.com?node_id=337675


in reply to Yet Another UTF8 Issue

This second file contains one umlaut in ISO-8859-1 encoding. Without this umlaut there is no problem.
Is the encoding decleared in the "<?XML ... ?>" header? Without it, any XML parser assumes, as it must, that the encoding is in UTF-8. The complete, proper declaration for your case would be like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
See this for an explanation of this issue in beginners' terms.

Replies are listed 'Best First'.
Re: Re: Yet Another UTF8 Issue
by stefan k (Curate) on Mar 18, 2004 at 14:05 UTC
    Yes, just as I mentioned in my question, I tried it. And it did nothing to make the warning go away.

    Regards... Stefan
    you begin bashing the string with a +42 regexp of confusion