Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    XMLTools fails validation with UTF-16

    Plugin Development
    2
    3
    4842
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gerdb42
      gerdb42 last edited by

      I have an XML file with a declared encoding of UTF-16. The encoding shown by NPP is UCS-2 LE BOM. If I look at the file with a Hex Editor it’s just that: Unicode with BOM at the beginning.

      However, XMLTools’ validation fails with “Document labelled UTF-16 but has UTF-8 content”

      Can anyone explain why a seemingly correct document can’t be validated?

      1 Reply Last reply Reply Quote 0
      • dail
        dail last edited by dail

        Can anyone explain why a seemingly correct document can’t be validated?

        It’s called a bug

        https://sourceforge.net/p/npp-plugins/bugs/166/

        No idea if it has ever been fixed.

        1 Reply Last reply Reply Quote 0
        • gerdb42
          gerdb42 last edited by

          Ok, I see. Since it is hanging around for three years now, I doubt it ever will be…

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors