Community
    • Login

    XMLTools fails validation with UTF-16

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 6.0k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors