ArticleslgStudy

computer science

Bush hid the facts

Bush hid the facts is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bush hid the facts rather than just read about it. In short: "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 Notepad document and saved, closed, and reopened, the nonsensical sequence of the Chinese characters "畂桳栠摩琠敨映捡獴" would appear instead.

Bush hid the facts — main illustration
Bush hid the facts — illustration

Key takeaways

  • Bush hid the facts belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bush hid the facts to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bush hid the facts from memory before moving on to harder problems.

Reference excerpt

"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 Notepad document and saved, closed, and reopened, the nonsensical sequence of the Chinese characters "畂桳栠摩琠敨映捡獴" would appear instead. While "Bush hid the facts" is the sentence most commonly presented to induce the error, the bug can also be triggered by other strings such as "hhhh hhh hhh hhhhh", "this app can break", and even "a " or "z!". The bug had existed since IsTextUnicode was introduced with Windows NT 3.5 in 1994, but was not discovered until early 2004, when George W. Bush was president of the US.

Cause

When a text file is opened in Notepad, Windows checks if the text is encoded in UTF-16 using the Win32 charset detection function IsTextUnicode. IsTextUnicode guesses it is Unicode if the total changes to the "low byte" (the even indices starting at 0) is three times greater than the total changes to the "high byte" (the odd indices). If so, it returns true, causing the application to incorrectly interpret the text as UTF-16LE. As a result, Notepad renders the text as Chinese characters. It is commonly believed that spaces at even indices trigger the bug, this is due to space (32) being farther away from the lower-case letters (97...122) than letters are from each other. Many text editors and tools exhibit this behavior on Windows because they use IsTextUnicode to determine the encoding of text files. In Windows Vista, Notepad was modified to use a different detection algorithm that does not exhibit the bug, but IsTextUnicode remains unchanged so any other tools that use it are still affected. Modern documentation states "These tests are not foolproof."

Workarounds Several workarounds exist for this bug:

Add a character so the string is an odd number of bytes long. Save the file as "UTF-8" (before 2018) or "UTF-8 with BOM" (after 2018) rather than "ANSI". This prepends a UTF-8 byte order mark which avoids the bug. UTF-8 without the byte order mark would still trigger the bug, as it is identical to the "ANSI" file. Saving as "Unicode", which in Microsoft Windows means UTF-16LE. When loading this text IsTextUnicode should (and does) return true and the text is correct. To retrieve the original text using Notepad, bring up the "Open a file" dialog box, select the file, select "ANSI" or "UTF-8" in the "Encoding" list box, and click Open. Under Windows 2000, Notepad lacks the "Encoding" list box. WordPad appears to load the text correctly without choosing the encoding, since it uses its own encoding detection.

See also Mojibake Unicode Character encoding

References

External links The Notepad file encoding problem, redux – Raymond Chen IsTextUnicode – Microsoft Docs Censor oracle – A tool to identify strings that might trigger the bug (source code on GitHub)

Worked examples

Example 1 — a first encounter with Bush hid the facts

Start with the simplest possible case. Write down what Bush hid the facts claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bush hid the facts before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bush hid the facts ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bush hid the facts

In research
Bush hid the facts appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bush hid the facts in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bush hid the facts is common in secondary-school and first-year university syllabi. It links to neighbouring topics Character encoding, Microsoft Windows, Software bugs, so understanding it makes those chapters shorter.
In everyday life
Look for Bush hid the facts outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bush hid the facts” →

How to study Bush hid the facts in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bush hid the facts means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bush hid the facts out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bush hid the facts in simple terms?

"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 Notepad document and saved, closed, and reopened, t…

Why does Bush hid the facts matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bush hid the facts?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bush hid the facts.

Tags

  • Character encoding
  • Microsoft Windows
  • Software bugs

Keep exploring