- Bush hid the facts
Bush hid the facts is the common name for a bug present in the
charset detection of all versions ofMicrosoft Notepad inWindows 2000 andWindows XP , which causes a file of text encoded inWindows-1252 or similar encoding to be interpreted as if it wasUTF-16 , resulting inmojibake .While "Bush hid the facts" is the sentence that is most commonly presented on the
Internet , it does not exclusively occur with that phrase. The bug can be triggered by many sentences, including those that follow a particular structure: first word with an even number of letters (2 or more) and all other words with odd number of letters (3 or more).The bug occurs when such a string is entered into Notepad (with no other characters) and then saved as a
text file . Upon reloading the file into Notepad, the text will be replaced with nineChinese characters , or squares if the language pack has not been installed. To retrieve the original text, bring up the "Open a file" dialog box, select the file, select "ANSI" in the "Encoding" list box, and click Open.Discovery
The bug appeared for the first time in Windows 2000 but was not discovered until early 2004 [http://weblogs.asp.net/cumpsd/archive/2004/02/27/81098.aspx] and has since risen in popularity on the Internet.Fact|date=December 2007
Clearing the content by selecting, cutting and then repasting the text does not prevent reproduction as long as it is carefully done.
Notepad misinterprets the encoding of the file when it is re-opened. If the file is originally saved as "
Unicode " rather than "ANSI " the text displays correctly.Older versions of Notepad such as those that came with Windows 95, 98 or ME do not include Unicode support so the error does not occur.
Notepad2 (by Florian Balmer) also exhibits this behaviour.It appears that in Windows 2000/XP and Notepad2, these use the
Windows API call "IsTextUnicode" [http://msdn.microsoft.com/en-us/library/ms776445(VS.85).aspx] which occasionally returns the incorrect results with the word length combinations mentioned above.External links
* [http://blogs.msdn.com/oldnewthing/archive/2007/04/17/2158334.aspx The Notepad file encoding problem, redux] –
The Old New Thing
* [http://msdn.microsoft.com/en-us/library/ms776445(VS.85).aspx IsTextUnicode] -MSDN Library
Wikimedia Foundation. 2010.