Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Workarounds  





2 References  





3 External links  














Bush hid the facts






Français

Italiano
Lombard

Polski
Türkçe
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


"Bush hid the facts" is a common name for a bug present in Microsoft Windows which causes text encoded in ASCII to be interpreted as if it were UTF-16LE, resulting in garbled text. When the string "Bush hid the facts", without quotes, was put in a new Notepad document and saved, closed, and reopened, the nonsensical sequence of the Chinese characters "" would appear instead.[citation needed]

While "Bush hid the facts" is the sentence most commonly presented to induce the error, the bug can be triggered by other strings, for example "hhhh hhh hhh hhhhh"[1]or"this app can break",[2] and even "a "or"z!".[3]

Diagram explaining the bug

The bug occurs when the string is passed to the Win32 charset detection function IsTextUnicode. IsTextUnicode guesses it is Unicode if the "hi byte" (the odd indexes) changes three times less than the "low byte",[3] if so it returns true, and the application then incorrectly interprets the text as UTF-16LE.[4]

The bug had existed since IsTextUnicode was introduced with Windows NT 3.5 in 1994, but was not discovered until early 2004.[5] Many text editors and tools exhibit this behavior on Windows because they use IsTextUnicode to determine the encoding of text files. As of Windows Vista, Notepad has been modified to use a different detection algorithm that does not exhibit the bug, but IsTextUnicode remains unchanged in the operating system, so any other tools that use the function are still affected.[6]

Workarounds[edit]

Several workarounds exist for this bug:

References[edit]

  1. ^ Christensen, Brett M. (November 2, 2009). "Bush Hid The Facts - Notepad Conspiracy Claim". Hoax Slayer. Archived from the original on 2010-03-15.
  • ^ Kaplan, Michael S. (14 June 2006). "Behind 'How to break Windows Notepad'". archives.miloush.net. Archived from the original on 25 October 2013. Retrieved 2022-07-12.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  • ^ a b "Bush hid the facts" Bug EXPLAINED, retrieved 2023-07-04
  • ^ Chen, Raymond (March 24, 2007). "Some files come up strange in Notepad". The Old New Thing. Microsoft. Retrieved 2022-07-12.
  • ^ Cumps, David (February 27, 2004). "Notepad bug? Encoding issue?". #region .Net Blog. Retrieved February 15, 2009.
  • ^ Kaplan, Michael S. (March 25, 2008). "Bush might've still hid the facts, but he can't hide them from Vista SP1/Server 2008 Notepad". Retrieved 13 April 2017.
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Bush_hid_the_facts&oldid=1221154682"

    Categories: 
    Character encoding
    Software bugs
    Microsoft Windows
    Hidden categories: 
    CS1 maint: bot: original URL status unknown
    Articles with short description
    Short description is different from Wikidata
    Articles with self-published sources from July 2023
    All articles with self-published sources
    Articles needing additional references from March 2024
    All articles needing additional references
    Articles with multiple maintenance issues
    Articles containing Chinese-language text
    All articles with unsourced statements
    Articles with unsourced statements from March 2024
     



    This page was last edited on 28 April 2024, at 06:13 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki