EchoNoise Posted June 20, 2006 Share Posted June 20, 2006 (edited) [deleted] Edited September 29, 2022 by EchoNoise Link to comment Share on other sites More sharing options...
LLXX Posted June 21, 2006 Share Posted June 21, 2006 Only happens on Vista. I know, their notepad is broken. Link to comment Share on other sites More sharing options...
Jito463 Posted June 21, 2006 Share Posted June 21, 2006 Happens in XP x64 version as well. Very strange. Link to comment Share on other sites More sharing options...
oldwolf Posted June 21, 2006 Share Posted June 21, 2006 Happens in XP SP1 too Link to comment Share on other sites More sharing options...
EchoNoise Posted June 21, 2006 Author Share Posted June 21, 2006 (edited) [deleted] Edited September 29, 2022 by EchoNoise Link to comment Share on other sites More sharing options...
Camarade_Tux Posted June 21, 2006 Share Posted June 21, 2006 Only happens on Vista. I know, their notepad is broken.Happens on all unicode versions of notepad And in Notepad2 too. Which is pretty easy to understand since I think it uses the same APIs as windows's notepad to display text. Link to comment Share on other sites More sharing options...
WolfX2 Posted June 27, 2006 Share Posted June 27, 2006 happens on XP SP2 too Link to comment Share on other sites More sharing options...
EchoNoise Posted June 28, 2006 Author Share Posted June 28, 2006 (edited) [deleted] Edited September 29, 2022 by EchoNoise Link to comment Share on other sites More sharing options...
Camarade_Tux Posted June 28, 2006 Share Posted June 28, 2006 (edited) Oh, this doesn't happens anymore in Notepad2!Hum, what is XVI32 doing in my taskbar ?Also, 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 June 28, 2006 by Camarade_Tux Link to comment Share on other sites More sharing options...
EchoNoise Posted June 28, 2006 Author Share Posted June 28, 2006 (edited) [deleted] Edited September 29, 2022 by EchoNoise Link to comment Share on other sites More sharing options...
Camarade_Tux Posted June 28, 2006 Share Posted June 28, 2006 This specific sequence should be a header. Right ? Link to comment Share on other sites More sharing options...
LLXX Posted June 29, 2006 Share Posted June 29, 2006 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 More sharing options...
clavicle Posted June 29, 2006 Share Posted June 29, 2006 Hahaha, thats a great find ! Indeed it is great find and strange too Link to comment Share on other sites More sharing options...
SourceCode Posted July 6, 2006 Share Posted July 6, 2006 heh, that's strange.it's not a problem with the API itself though, because i use that same API in another app and it handles the file like normal. Link to comment Share on other sites More sharing options...
Camarade_Tux Posted July 6, 2006 Share Posted July 6, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now