Community
    • Login

    XMLTools fails validation with UTF-16

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 5.4k Views
    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.
    • gerdb42G
      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
      • dailD
        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
        • gerdb42G
          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
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors