Question:
Interesting!! For those of you using Windows, do the following:?
Romi
2007-09-15 00:27:56 UTC
1. Open an empty notepad file
2. Type "Bush hid the facts" (without the quotes)
3. Save it as whatever you want.
4. Close it, and re-open it. Noticed the weird bug?
I've tried it in DOS. No problem. Works fine.
No one can explain! Can you?
Seven answers:
A to the B
2007-09-15 01:05:27 UTC
Simple. Notepad saves as a plain text file. This means no header, no extra encoding (unless you choose to save the file as unicode, and then every one of those characters gets 2 bytes instead of the one in ANSI). Basically, all the file contains is Bush hid the facts in its binary equivalent, or in hex, the phrase is "42 75 73 68 20 68 69 64 20 74 68 65 20 66 61 63 74 73". So the whole file contains just those 18 bytes. Unicode uses 2 bytes so this trick would not work well (except in very rare cases) if there were an odd number of bytes. Notepad uses a statistical algorithm when it can't tell directly that a file is unicode or ANSI. Because the phrase is only 18 characters long, the statistical algorithm doesn't have much to work with. So with this particular phrase, it guesses unicode based on the statistical calculations it makes. It guesses wrong of course, but it guesses just as wrong with phrases like "Bobo has one tulip". Notepad was designed to be an all-purpose app but as such it has some mistakes. It is worthwhile to mention, though, that it can open certain files with unicode encoding without the unicode header that other applications fail on. Conspiracy theories are like *** holes. Everyone's got one.
Sridhar G
2007-09-15 00:42:51 UTC
Windows n Microsoft have so many bugs / weird things n easter eggs...

No proper explanation for some of them like this..

Its all due to fonts buddy..

:)
?
2007-09-15 00:40:18 UTC
That is weird. Can't say I know what's happening here. I think you'll have to contact Microsoft and ask them about it.
anonymous
2007-09-15 00:50:14 UTC
Same thing happens when you type "Bill fed the goats," apparently.



It's a bug -- but an entertaining one ;-)
?
2007-09-15 01:04:56 UTC
tried it. weird
anonymous
2007-09-15 04:51:46 UTC
how it happens
anonymous
2007-09-15 00:35:50 UTC
wow!!



but hw?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...