Jump to content

[deleted]


EchoNoise

Recommended Posts


Oh, this doesn't happens anymore in Notepad2!

Hum, what is XVI32 doing in my taskbar ?

Also,

tiger.PNG

:P

And this never happens in Notepad++ which can also be used to restore your text. ;)

PS: notepad2 doesn't use the same API than windows's notepad. That was a Big mistake.

Edited by Camarade_Tux
Link to comment
Share on other sites

This specific sequence should be a header. Right ?
Yes, Unicode text files should have FFFE as the first word. The programmer forgot to add a check for that, and instead assumed Unicode.
Link to comment
Share on other sites

Thanks to a problem with an AutoHotKey script I think I found some explanations.

The FF FE sequence is used to determine the endianness of the file. It is a BOM.

If you read wikipedia's articles you know endianness is hardware-dependent.

Now, do you think Notepad, Notepad2... could run on something else than little-endian machines such as Intel's processors ?

So there is no need to bother with "FF FE", it will always be little-endian.

Then, Notepad++ is based on ScinTilla, and ScinTilla can run on win32 and machines that support GTK+. So it can include big-endian machines. Thus, it needs this FF FE string.

If you try to open a unicode text file created on a machine with a SPARC processor (SunOS) with Notepad/Notepad2, you will probably have troubles reading it. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...