Community
    • Login

    How does NP++ determine the character set?

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 1.3k Views 1 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.
    • Maury MarkowitzM Offline
      Maury Markowitz
      last edited by

      I am in the midst of writing a system that reads in a binary file, allows the user to change a very limited set of values in known locations, and then writes it back out again. This system is mostly working, except for strings.

      Whenever I have a problem with strings, the first thing I do is open the file, even binary, in NP++. This immediately revealed… something. I know that there is one of these strings near the top of the file and it reads “THINGY”, so I searched for it and immediately found it.

      I then opened the original file, the template so to speak, and that string was not there. In fact, all the characters in the file were in some other encoding. So I suspect what has happened is that there is some sort of encoding indicator somewhere in the file that I am failing to set properly.

      So, finally, the question: how does NP++ determine what character set encoding to use when you open a file?

      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