Content deleted Content added
→Windows 9x: Removed incorrect use of the word "Unicode" to mean UTF-16 |
Whoops, multibyte is a *third* api, described that, and moved the UTF-8 problems to where UTF-8 is discussed |
||
Line 1:
{{merge from|Bush hid the facts|date=November 2013}}
{{refimprove|date=June 2011}}
Microsoft started to consistently implement [[Unicode]] in their products quite early.{{clarify|date=July 2012}} [[Windows NT]] was the first operating system that used
== In various Windows families ==
=== Windows NT based systems ===
Modern operating systems [[Windows XP]] and [[Windows Server 2003]], and prior to them as [[Windows NT 4]] and Windows 2000 are shipped with the [[Windows API|system libraries]], which supported string [[character encoding|encoding]] of two types: UTF-16 (often called "Unicode" in Windows documentation) and an 8-bit encoding called the "[[Windows code page|code page]]" (or incorrectly referred to as ''ANSI code page''). 16-bit functions have names suffixed with -W (from [[wide character|"wide"]]), for example, lstrlenW(). Code page oriented functions uses suffix -A, e.g., lstrlenA(), for "ANSI". This
The <code>IsTextUnicode</code> function uses
Although the locale can be set so the "A" encodings handle some multi-byte encodings, it is not possible to set them to support [[UTF-8]]. As many libraries, including the standard C and C++ library, only allow access to files using the "A" api, it is not possible to open all Unicode-named files with them. These libraries could be fixed by making them convert UTF-8 to UTF-16, or the 'a' api improved to accept UTF-8, but Microsoft has so far done neither fix.▼
▲The <code>IsTextUnicode</code> function uses an [[heuristic algorithm]] on a [[byte string]] passed to it to detect whether this string represents UTF-16 text. For very short texts, this function, used by some applications like [[Notepad (software)|Notepad]], often gives incorrect results. This gave rise to legends about the existence of [[Easter egg (computing)|"Easter eggs"]] like [[Bush hid the facts]].
=== Windows CE ===
In [[Windows CE]] UTF-16 was used almost exclusively, with the "A" api mostly missing.
{{expand section|date=June 2011}}
Line 20 ⟶ 18:
== Various encoding schemes ==
Although Windows used the UTF-16LE encoding scheme internally, in [[NTFS]] file system, in [[Portable Executable|executables]] and
▲Although the locale can be set so the "
<references />
|