Alright, so I just learned something neat.
Open up Notepad, and type the following
this api can breakNow, save it as foo.txt and close it.
No go open it
Microsoft...ya'll gotta fix this stuff now, come on!
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Alright, so I just learned something neat.
Open up Notepad, and type the following
this api can breakNow, save it as foo.txt and close it.
It does that with any 4 word sentence with a 4,3,3, and 5 letters words in that order.
LOL that is amusing.
I wonder how many more bugs one could scope out with such primitive tests.
Regards,
Vincent
That is strange, I wonder why it happens.
Thanks for that.
Angus Higgins
Take a look at this old thread:
http://channel9.msdn.com/ShowPost.aspx?PostID=125104#125104
Cool ... But the file is saved properly, I mean you can get the original text if you open the file in wordpad.
Shreyas Zare
"Bush hid the facts"
OMG CONSPIRACY!
Baghdad Bob: There is no bug in Notepad! That is a feature, not a bug!IRenderable wrote:"Bush hid the facts"
OMG CONSPIRACY!
Angus wrote:That is strange, I wonder why it happens.
Thanks for that.
Angus Higgins
wordpad seems to open it up fine
Cybermagellan wrote:
Angus wrote: That is strange, I wonder why it happens.
Thanks for that.
Angus Higgins
If I remember right it's something like the order of that has some encoding at the end of it, that when opened back up Notepad doesn't know how to read it.
Steve411 wrote:
Cybermagellan wrote:
Angus wrote: That is strange, I wonder why it happens.
Thanks for that.
Angus Higgins
If I remember right it's something like the order of that has some encoding at the end of it, that when opened back up Notepad doesn't know how to read it.
If notepad is allowed to save the content with the encoding i should be able to properly read it as well.
When Notepad opens up a file it doesn't know whether it's 8-bit ANSI or 16-bit UTF-16 (technically UCS-2.)
So it makes an educated guess, based on high/low byte analysis heuristics.
In the examples cited, the string looks UCS-2-ish to Notepad.
More on Michael Kaplan's blog
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.