Bush Hid The Facts

Bush hid the facts is a common name for a bug present in some Microsoft Windows applications, which causes a file of text encoded in ASCII or its superset (such as in a Windows code page) to be interpreted as if it were UTF-16LE, resulting in mojibake. When "Bush hid the facts" (without newline) is put in a new Notepad document and saved, closed, and reopened, the nonsensical words "畂桳栠摩琠敨映捡獴" (Liu Benrenmotian Touyingjianmeng) appear instead.

While "Bush hid the facts" is the sentence most commonly presented on the Internet to induce the error, the bug can be triggered by many sentences with characters and spaces in a particular order so that the bytes match the UTF-16LE encoding of valid (if nonsensical) Chinese Unicode characters. Other popular strings are "this app can break", "acre vai pra globo" (Portuguese for "acre goes to Globe"), and "aaaa aaa aaa aaaaa".

The bug occurs when the string is passed to the Win32 charset detection function IsTextUnicode with no other characters. IsTextUnicode sees what it thinks is valid UTF-16LE Chinese and returns true, and the application then incorrectly interprets the text as UTF-16LE.

Many text editors and tools exhibit this behavior because they use IsTextUnicode as well.

Read more about Bush Hid The Facts:  Discovery, Workarounds

Famous quotes containing the words bush, hid and/or facts:

    I come to one bush of berries so ripe it is a bush of flies,
    Hanging their bluegreen bellies and their wing panes in a Chinese
    screen.
    The honey-feast of the berries has stunned them; they believe in
    heaven.
    Sylvia Plath (1932–1963)

    Then came Corinna in a long loose gown,
    Her white neck hid with tresses hanging down,
    Resembling fair Semiramis going to bed,
    Ovid (Publius Ovidius Naso)

    Still, it will sometimes strike a scientific man that the philosophers have been less intent on finding out what the facts are, than on inquiring what belief is most in harmony with their system.
    Charles Sanders Peirce (1839–1914)