Unrecognised XML characters

Posted on 2005-05-17
Last Modified: 2013-12-03
When running my XML file through Altova XMLSpy i get this error when it view it:

Your file contains 10 characters it should not, these are

#150; (0x96), #146; (0x92)

Does anyone know what chars these are?

I am using xml version='1.0' encoding='iso-8859-1'.

Is that the correct encoding type for English?


Question by:crmpicco
    LVL 7

    Expert Comment

    #150 (0x96) is a ` (a grave accent or upper left to lower right apostrophy)
    #146 (0x92) is a \  (backslash)

    These are system identifiers to XML and need to be escaped if they are used in your data.
    LVL 60

    Accepted Solution


    Is this the right encoding?
    I would say yes. It is Iso Latin 1, I think still used in most applications and though the XML recommendation doesn't force a parser to support it, most of them do.

    You can see the list at
    and then you will see that 128 to 156 are not supported

    You would run into the same problem using "UTF-8" because UTF-8 just copies Iso Latin in the 1 byte range.

    The encoding "windows-1252" is exactly the same, but uses the space 128 - 156 for some extra characters. eg. the Euro Sign is in that space. That is exactly the reason why so many people are using this Windows version of Iso Latin 1 (called Windows Latin 1)
    It is supported by XML SPy and windows parsers. So it is OK for use in a Windows centric environment. Beware for export though.;en-us;197368#kb1

    There is something now, called :encoding='iso-8859-15' that adds some extra characters, also the Euro-sign to Iso Latin 1 and apparently it is supported in XML-Spy. I don't have too many details.

    I don't know how you want to render the characters in the end. But if you are only concerned about correct storage, then I would go for a preprocessing step. Use some Regular Expression tool to walk through the XML and replace the characters you mentioned by – and ’ provided they are correct in the unicode standard. Or find the exact meaning in the unicode tables.
    For reference you can go to

    If the only tool in your toolbox is Spy, I asume you can twiddle with some scripting onLoad.

    I hope this helps. If you have more questions, I am happy to help



    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now