UTF-16: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (Unicodifying, replaced: See Also → See also, added underlinked tag)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{stub}}
{{Underlinked|date=January 2024}}
 
'''UTF-16''' is a way to encode [[Unicode]] characters in 16-bit (2 byte) chunks. Characters using UTF-16 encoding can be stored in '''wchar_t''' variables or arrays, or '''wstring''' objects, but may not handle surrogates properly if mishandled.
 
== See also ==
* [http://en.wikipedia.org/wiki/UTF-16 UTF-16 article on Wikipedia]
* [http://www.joelonsoftware.com/articles/Unicode.html Joel Spolsky's "The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)"]
 
[[Category:Glossary]]


UTF-16 is a text encoding format, similiar to ASCII. It is 16 bits wide, thus providing an enormous amount of characters as opposed to ASCII, which can only hold 256. UTF-16 can have 65536 different characters.


[[category:glossary]]
{{stub}}

Latest revision as of 15:06, 7 January 2024

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

UTF-16 is a way to encode Unicode characters in 16-bit (2 byte) chunks. Characters using UTF-16 encoding can be stored in wchar_t variables or arrays, or wstring objects, but may not handle surrogates properly if mishandled.

See also


Stub

This article or section is a stub. You can help by expanding it.