How does NP++ determine the character set?
-
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?
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