UTF-8
Page Template:Mono/styles.css has no content.Page Module:Infobox/styles.css has no content.
| Standard | Unicode Standard |
|---|---|
| Classification | Unicode Transformation Format, extended ASCII, variable-length encoding |
| Extends | ASCII |
| Transforms / Encodes | ISO/IEC 10646 (Unicode) |
| Preceded by | UTF-1 |
UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode Transformation Format – 8-bit.[1] As of 2026, almost every webpage (99%) is transmitted as UTF-8.[2]
UTF-8 supports all 1,112,064[3] valid Unicode code points using a variable-width encoding of one to four one-byte (8-bit) code units.
Code points with lower numerical values, which tend to occur more frequently, are encoded using fewer bytes. It was designed for backward compatibility with ASCII: the first 128 characters of Unicode, which correspond one-to-one with ASCII, are encoded using a single byte with the same binary value as ASCII, so that a UTF-8-encoded file using only those characters is identical to an ASCII file. Most software designed for any extended ASCII can read and write UTF-8, and this results in fewer internationalization issues than any alternative text encoding.[4][5]
UTF-8 is dominant for all countries/languages on the internet, is used in most standards, often the only allowed encoding, and is supported by all modern operating systems and programming languages.
History
Script error: No such module "Labelled list hatnote".
The International Organization for Standardization (ISO) set out to compose a universal multi-byte character set in 1989. The draft ISO 10646 standard contained a non-required annex called UTF-1 that provided a byte stream encoding of its 32-bit code points. This encoding was not satisfactory on performance grounds, among other problems, and the biggest problem was probably that it did not have a clear separation between ASCII and non-ASCII: new UTF-1 tools would be backward compatible with ASCII-encoded text, but UTF-1-encoded text could confuse existing code expecting ASCII (or extended ASCII), because it could contain continuation bytes in the range Page Template:Mono/styles.css has no content.0x21–Page Template:Mono/styles.css has no content.0x7E that meant something else in ASCII, e.g., Page Template:Mono/styles.css has no content.0x2F for /, the Unix path directory separator.
In July 1992, the X/Open committee XoJIG was looking for a better encoding. Dave Prosser of Unix System Laboratories submitted a proposal for one that had faster implementation characteristics and introduced the improvement that 7-bit ASCII characters would only represent themselves; multi-byte sequences would only include bytes with the high bit set. The name File System Safe UCS Transformation Format (FSS-UTF)[6] and most of the text of this proposal were later preserved in the final specification.[7][8][9] In August 1992, this proposal was circulated by an IBM X/Open representative to interested parties.
A modification by Ken Thompson of the Plan 9 operating system group at Bell Labs made it self-synchronizing, letting a reader start anywhere and immediately detect character boundaries, at the cost of being somewhat less bit-efficient than the previous proposal. It also abandoned the use of biases that prevented overlong encodings.[9][10] Thompson's design was outlined on September 2, 1992, on a placemat in a New Jersey diner with Rob Pike. In the following days, Pike and Thompson implemented it and updated Plan 9 to use it throughout,[11] and then communicated their success back to X/Open, which accepted it as the specification for FSS-UTF.[9] UTF-8 was first officially presented at the USENIX conference in San Diego, from January 25 to 29, 1993.[12] The Internet Engineering Task Force adopted UTF-8 in its Policy on Character Sets and Languages in RFC 2277 (BCP 18) for future internet standards work in January 1998, replacing Single Byte Character Sets such as Latin-1 in older RFCs.[13]
In November 2003, UTF-8 was restricted by Template:IETF RFC to match the constraints of the UTF-16 character encoding: explicitly prohibiting code points corresponding to the high and low surrogate characters removed more than 3% of the three-byte sequences, and ending at Template:Tt removed more than 48% of the four-byte sequences and all five- and six-byte sequences.[14]
Description
UTF-8 encodes code points in one to four bytes, depending on the value of the code point. In the following table, the characters Page Template:Mono/styles.css has no content.u to Page Template:Mono/styles.css has no content.z, each representing a hexadecimal digit, are replaced by their constituent 4 bits Page Template:Mono/styles.css has no content.uuuu to Page Template:Mono/styles.css has no content.zzzz, from the positions Page Template:Mono/styles.css has no content.U+uvwxyz:
| First code point | Last code point | Byte 1 | Byte 2 | Byte 3 | Byte 4 |
|---|---|---|---|---|---|
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.0yyyzzzz | |||
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.110xxxyy | Page Template:Mono/styles.css has no content.10yyzzzz | ||
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.1110wwww | Page Template:Mono/styles.css has no content.10xxxxyy | Page Template:Mono/styles.css has no content.10yyzzzz | |
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.11110uvv | Page Template:Mono/styles.css has no content.10vvwwww | Page Template:Mono/styles.css has no content.10xxxxyy | Page Template:Mono/styles.css has no content.10yyzzzz |
As an example, the character 桁 has the hexadecimal code point Page Template:Mono/styles.css has no content.U+6841, which is Page Template:Mono/styles.css has no content.0110 1000 0100 0001 in binary, which makes its UTF-8 encoding Page Template:Mono/styles.css has no content.11100110 10100001 10000001.
The first 128 code points (ASCII) need 1 byte. The next 1,920 code points need two bytes to encode, which covers the remainder of almost all Latin-script alphabets, and also IPA extensions, Greek, Cyrillic, Coptic, Armenian, Hebrew, Arabic, Syriac, Thaana and N'Ko alphabets, as well as Combining Diacritical Marks. Three bytes are needed for the remaining 61,440 codepoints of the Basic Multilingual Plane (BMP), including most Chinese, Japanese and Korean characters. Four bytes are needed for the 1,048,576 non-BMP code points, which include emoji, less common CJK characters, and other useful characters.[15]
UTF-8 is a prefix code and it is unnecessary to read past the last byte of a code point to decode it. Unlike many earlier multi-byte text encodings such as Shift-JIS, it is self-synchronizing so searches for short strings or characters are possible; and the start of a code point can be found from a random position by backing up at most 3 bytes. The values chosen for the lead bytes means sorting a list of UTF-8 strings puts them in the same order as sorting UTF-32 strings.
Overlong encodings
Using a row in the above table to encode a code point less than "First code point" (thus using more bytes than necessary) is termed an overlong encoding. These are a security problem because they allow character sequences to bypass other security validations like the blocking of ../ or of malicious JavaScript. There have been numerous high-profile vulnerabilities involving overlong encodings reported in products such as Microsoft's IIS web server[16] and Apache's Tomcat servlet container.[17] Overlong encodings should therefore be considered an error and never decoded.
Error handling
Not all sequences of bytes are valid UTF-8. A UTF-8 decoder should be prepared for:
- A "continuation byte" (Template:Tt–Template:Tt) at the start of a character
- A non-continuation byte (or the string ending) before the end of a character
- An overlong encoding (Template:Tt, Template:Tt, Template:Tt followed by less than Template:Tt, or Template:Tt followed by less than Template:Tt)
- A multi-byte sequence that decodes to a value greater than Template:Tt (Template:Tt followed by Template:Tt or greater, Template:Tt–Template:Tt)
Many of the first UTF-8 decoders would decode these, ignoring incorrect bits. Carefully crafted invalid UTF-8 could make them either skip or create ASCII characters such as Page Template:Mono/styles.css has no content.NUL, slash, or quotes, leading to security vulnerabilities. RFC 3629 states "Implementations of the decoding algorithm MUST protect against decoding invalid sequences."[18] The Unicode Standard requires decoders to: "... treat any ill-formed code unit sequence as an error condition. This guarantees that it will neither interpret nor emit an ill-formed code unit sequence."
It was common to throw an exception or truncate the string at an error[19] but this turns what would otherwise be harmless errors (i.e. "file not found") into a denial of service, for instance early versions of Python 3.0 would exit immediately if the command line or environment variables contained invalid UTF-8.[20] Most code now replaces each error with a single code point (such as Page Template:Mono/styles.css has no content.U+FFFD � Script error: No such module "Unicode data".) and continue decoding.[citation needed]
Some decoders consider the sequence Page Template:Mono/styles.css has no content.E1,A0,20 (a truncated 3-byte code followed by a space) as a single error. This is not a good idea as a search for a space character would find the one hidden in the error. Since Unicode 6 (October 2010)[1] the standard (chapter 3) has recommended a "best practice" where the error is either one continuation byte, or ends at the first byte that is disallowed, so Page Template:Mono/styles.css has no content.E1,A0,20 is a two-byte error followed by a space. An error is no more than three bytes long, never contains the start of a valid character, and there are 21,952 different possible errors. Many decoders instead make each byte be an error, in which case Page Template:Mono/styles.css has no content.E1,A0,20 is two errors followed by a space; there are now only 128 different errors which makes it practical to store the errors in the output string,[20] or replace them with characters from a legacy encoding.
Only a small subset of possible byte strings are error-free UTF-8: several bytes cannot appear, a byte with the high bit set cannot be alone, and in a truly random string a byte with a high bit set has only a Page Template:Fraction/styles.css has no content.1⁄15 chance of starting a valid UTF-8 character. This has the consequence of making it easy to detect if a legacy text encoding is accidentally used instead of UTF-8, making conversion of a system to UTF-8 easier and avoiding the need to require a Byte Order Mark or any other metadata.
Surrogates
Since RFC 3629 (November 2003), the high and low surrogates used by UTF-16 (Template:Tt through Template:Tt) are not legal Unicode values, and their UTF-8 encodings must be treated as an invalid byte sequence.[18] These encodings all start with Template:Tt followed by Template:Tt or higher. This rule is often ignored as surrogates are allowed in Windows filenames and this means there must be a way to store them in a string.[21] UTF-8 that allows these surrogate halves has been (informally) called WTF-8, for "wobbly transformation format",[22] while another variation that also encodes all non-BMP characters as two surrogates (6 bytes instead of 4) is called CESU-8.
Byte map
The chart below gives the detailed meaning of each byte in a stream encoded in UTF-8. Template:UTF-8 byte map
Byte-order mark
If the Unicode byte-order mark Template:Tt is at the start of a UTF-8 file, the first three bytes will be Page Template:Mono/styles.css has no content.0xEF, Page Template:Mono/styles.css has no content.0xBB, Page Template:Mono/styles.css has no content.0xBF.
The Unicode Standard neither requires nor recommends the use of the BOM for UTF-8, but warns that it may be encountered at the start of a file trans-coded from another encoding.[23] While ASCII text encoded using UTF-8 is backward compatible with ASCII, this is not true when Unicode Standard recommendations are ignored and a BOM is added. A BOM can confuse software that isn't prepared for it but can otherwise accept UTF-8, e.g. programming languages that permit non-ASCII bytes in string literals but not at the start of the file. Nevertheless, there was and still is software that always inserts a BOM when writing UTF-8, and refuses to correctly interpret UTF-8 unless the first character is a BOM (or the file only contains ASCII).[citation needed]
Older standards
Earlier standards for UTF-8, like Template:IETF RFC, could encode up to 31 bits in 6 bytes, as shown in the table below. The current Template:IETF RFC allows only up to 4 bytes.

For this table the characters Page Template:Mono/styles.css has no content.s to Page Template:Mono/styles.css has no content.z, each representing a hexadecimal digit, are replaced by their constituent 4 bits Page Template:Mono/styles.css has no content.ssss to Page Template:Mono/styles.css has no content.zzzz, from the positions Page Template:Mono/styles.css has no content.U+stuvwxyz:
| First code point | Last code point | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 |
|---|---|---|---|---|---|---|---|
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.0yyyzzzz | |||||
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.110xxxyy | Page Template:Mono/styles.css has no content.10yyzzzz | ||||
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.1110wwww | Page Template:Mono/styles.css has no content.10xxxxyy | Page Template:Mono/styles.css has no content.10yyzzzz | |||
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.11110uvv | Page Template:Mono/styles.css has no content.10vvwwww | Page Template:Mono/styles.css has no content.10xxxxyy | Page Template:Mono/styles.css has no content.10yyzzzz | ||
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.111110tt | Page Template:Mono/styles.css has no content.10uuuuvv | Page Template:Mono/styles.css has no content.10vvwwww | Page Template:Mono/styles.css has no content.10xxxxyy | Page Template:Mono/styles.css has no content.10yyzzzz | |
| Template:Tt | Template:Tt | Page Template:Mono/styles.css has no content.1111110s | Page Template:Mono/styles.css has no content.10sstttt | Page Template:Mono/styles.css has no content.10uuuuvv | Page Template:Mono/styles.css has no content.10vvwwww | Page Template:Mono/styles.css has no content.10xxxxyy | Page Template:Mono/styles.css has no content.10yyzzzz |
Comparison to UTF-16
Script error: No such module "Labelled list hatnote".
For a long time there was considerable argument as to whether it was better to process text in UTF-16 or in UTF-8.[citation needed] The primary advantage of UTF-16 is that the Windows API required it for access to all Unicode characters (UTF-8 was not fully supported in Windows until May 2019). This caused several libraries such as Qt to also use UTF-16 strings which propagates this requirement to non-Windows platforms.
In the early days of Unicode, there were no characters greater than Template:Tt and combining characters were rarely used, so the 16-bit encoding was effectively fixed-size. Some believed fixed-size encoding could make processing more efficient, but any such advantages were lost as soon as UTF-16 became variable width as well.
The code points Template:Tt–Template:Tt take 3 bytes in UTF-8 but only 2 in UTF-16. This led to the idea that text in Chinese and other languages would take more space in UTF-8. However, text is only larger if there are more of these code points than 1-byte ASCII code points, and this rarely happens in real-world documents due to markup,[24] along with spaces, newlines, digits, punctuation, English words, etc..
UTF-8 has the advantages of being trivial to retrofit to any system that could handle an extended ASCII, not having byte-order problems, and taking about half the space for any language using mostly Latin letters.
Implementations and adoption
Script error: No such module "Labelled list hatnote".
UTF-8 has been the most common encoding for the World Wide Web since 2008.[26] As of January 2026[update], UTF-8 is used by 98.9% of surveyed web sites.[2] Although many pages only use ASCII characters to display content, very few websites now declare their encoding to only be ASCII instead of UTF-8.[27] Virtually all countries and languages have 95% or more use of UTF-8 encodings on the web.
Many standards only support UTF-8, e.g. JSON exchange requires it (without a byte-order mark (BOM)).[28] UTF-8 is also required by the WHATWG for HTML and DOM specifications, which states "UTF-8 encoding is the most appropriate encoding for interchange of Unicode",[5] and the Internet Mail Consortium recommends that all e‑mail programs be able to display and create mail using UTF-8.[29][30] The World Wide Web Consortium recommends UTF-8 as the default encoding in XML and HTML (and not just using UTF-8, also declaring it in metadata), "even when all characters are in the ASCII range ... Using non-UTF-8 encodings can have unexpected results". Version 5.3 of the W3C HTML specification and the current Living Standard by WHATWG both require UTF-8.[31][32]
Many software programs have the ability to read/write UTF-8. It may require the user to change options from the normal settings, or may require a BOM (byte-order mark) as the first character to read the file. Examples of software supporting UTF-8 include Microsoft Word,[33][34] Microsoft Excel (Office 2003 and later),[35] Google Drive, LibreOffice,[36] and most databases.
Software that "defaults" to UTF-8 (meaning it writes it without the user changing settings, and it reads it without a BOM) has become more common since 2010.[37][unreliable source] Windows Notepad, in all currently supported versions of Windows, defaults to writing UTF-8 without a BOM (a change from Windows 7 Notepad), bringing it into line with most other text editors.[38] Some system files on Windows 11 require UTF-8[39] with no requirement for a BOM, and almost all files on macOS and most Linux distributions are required to be UTF-8 without a BOM.[citation needed] Programming languages that default to UTF-8 for I/O include Ruby 3.0,[40][41] R 4.2.2,[42] Raku and Java 18.[43] Python 3.15 makes UTF-8 the default for I/O;[44][45] previous versions require an option to open() to read/write UTF-8.[46] C++23 adopted UTF-8 as the only portable source code file format.[47]
Backwards compatibility is a serious impediment to changing code and APIs using UTF-16 to use UTF-8, but this is happening. In May 2019, Microsoft added the capability for an application to set UTF-8 as the "code page" for the Windows API, removing the need to use UTF-16; and more recently has recommended programmers use UTF-8,[48] and even states "UTF-16 [...] is a unique burden that Windows places on code that targets multiple platforms".[4] The default string primitive in Go,[49] Julia, Rust, Swift (since version 5),[50] and PyPy[51] uses UTF-8 internally in all cases. Python (since version 3.3) uses UTF-8 internally for Python C API extensions[52][53] and sometimes for strings[52][54] and a future version of Python is planned to store strings as UTF-8 by default.[55][56] Modern versions of Microsoft Visual Studio use UTF-8 internally.[57] All currently supported versions of Microsoft SQL Server support UTF-8 for importing and exporting, and in addition all on mainstream support, i.e. since SQL Server 2019, support UTF-8 internally, and using it results in a 35% speed increase, and "nearly 50% reduction in storage requirements".[58]
Java internally uses UTF-16 for the char data type and, consequentially, the Character, String, and StringBuffer classes,[59] but for I/O uses "Modified UTF-8", which is the same as CESU-8, except the null character Template:Tt uses the two-byte overlong encoding Template:Tt Template:Tt instead of just Template:Tt.[60] Modified UTF-8 strings never contain any actual null bytes but can contain all Unicode code points including Template:Tt,[61] which allows such strings (with a null byte appended) to be processed by traditional null-terminated string functions. Java reads and writes normal UTF-8 to files and streams,[62] but it uses Modified UTF-8 for object serialization,[63][64] for the Java Native Interface,[65] and for embedding constant strings in Java class files.[61] The dex format defined by Dalvik also uses the same modified UTF-8 to represent string values.[66] Tcl also uses the same modified UTF-8[67] as Java for internal representation of Unicode data, but uses strict CESU-8 for external data.
The Raku programming language (formerly Perl 6) uses utf-8 encoding by default for I/O (Perl 5 also supports it); though that choice in Raku also implies "normalization into Unicode NFC (normalization form canonical). In some cases the user will want to ensure no normalization is done; for this "utf8-c8" can be used.[68] That UTF-8 Clean-8 variant, implemented by Raku, is an encoder/decoder that preserves bytes as is (even illegal UTF-8 sequences) and allows for Normal Form Grapheme synthetics.[69]
Version 3 of the Python programming language treats each byte of an invalid UTF-8 bytestream as an error (see also changes with new UTF-8 mode in Python 3.7[70]); this gives 128 different possible errors. Extensions have been created to allow any byte sequence that is assumed to be UTF-8 to be losslessly transformed to UTF-16 or UTF-32, by translating the 128 possible error bytes to 128 reserved code points, and transforming those code points back to error bytes to output UTF-8. The most common approach is to translate the codes to Template:Tt...Template:Tt which are low (trailing) surrogate values and thus "invalid" UTF-16, as used by Python's PEP 383 (or "surrogateescape") approach.[20] NumPy version 2.0, and its file formats, support UTF-8 (adding StringDType for it).[71] Another encoding called MirBSD OPTU-8/16 converts them to Template:Tt...Template:Tt in a Private Use Area.[72] In either approach, the byte value is encoded in the low eight bits of the output code point. These encodings are needed if invalid UTF-8 is to survive translation to and then back from the UTF-16 used internally by Python, and as Unix filenames can contain invalid UTF-8 it is necessary for this to work.[73]
Most file systems on Unix-like systems can use UTF-8 to encode file names, as looking up file names is done by comparing the bytes of file names. Linux's ext4 and macOS's APFS file systems support case-insensitive file name lookups, which require that the encoding of file names be specified; ext4 supports UTF-8 and uses it by default,[74] and APFS requires UTF-8.[75] Apple's older HFS Plus uses UTF-16 for file names, but uses UTF-8 in symbolic links.[76] Windows' filesystem, NTFS, uses UTF-16 for file names.
Standards
The official name for the encoding is UTF-8, the spelling used in all Unicode Consortium documents. The hyphen-minus is required and no spaces are allowed. Some other names used are:
- Many standards are case-insensitive and
utf-8is often used.[citation needed] - Web standards (which include CSS, HTML, XML, and HTTP headers) also allow
utf8and many other aliases.[77] HTML documents, however, must have their encoding specified as "an ASCII case-insensitive match for the string 'utf-8'".[31] - The official Internet Assigned Numbers Authority lists
csUTF8as the only alias,[78] which is rarely used. - In some locales
UTF-8Nmeans UTF-8 without a byte-order mark (BOM), and in this caseUTF-8may imply there is a BOM.[79][80] - In Windows, UTF-8 is codepage
65001[81] with the symbolic nameCP_UTF8in source code. - In MySQL, UTF-8 is called
utf8mb4,[82] whileutf8andutf8mb3refer to the obsolete CESU-8 variant.[83] - In Oracle Database,
AL32UTF8means UTF-8 (since version 9.0), whileUTF8means CESU-8 (since 8.0),[84] and is not recommended for use.[85] - In HP PCL, the Symbol-ID for UTF-8 is
18N.[86]
There are several current definitions of UTF-8 in various standards documents:
- Template:IETF RFC / STD 63 (2003), which establishes UTF-8 as a standard internet protocol element
- Template:IETF RFC defines UTF-8 NFC for Network Interchange (2008)
- ISO/IEC 10646:2020/Amd 1:2023[87]
- The Unicode Standard, Version 17.0.0 (2025)
They supersede the definitions given in the following obsolete works:
- The Unicode Standard, Version 2.0, Appendix A (1996)
- ISO/IEC 10646-1:1993 Amendment 2 / Annex R (1996)
- Template:IETF RFC (1996)
- Template:IETF RFC (1998)
- The Unicode Standard, Version 3.0, §2.3 (2000) plus Corrigendum #1 : UTF-8 Shortest Form (2000)
- Unicode Standard Annex #27: Unicode 3.1 (2001)[88]
- The Unicode Standard, Version 5.0 (2006)[89]
- The Unicode Standard, Version 6.0 (2010)[1]
They are all the same in their general mechanics, with the main differences being on issues such as allowed range of code point values and safe handling of invalid input.
See also
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
References
Page Template:Reflist/styles.css has no content.
- ^ a b c Page Module:Citation/CS1/styles.css has no content.Unicode® 6.0.0: Released: 2010 October 11 (Announcement) (6.0.0 ed.). Mountain View, California, US: The Unicode Consortium. ISBN 978-1-936213-01-6. Archived from the original on 2025-07-28. Retrieved 2025-08-23.
- ^ a b Page Module:Citation/CS1/styles.css has no content."Usage Survey of Character Encodings broken down by Ranking". W3Techs. January 2026. Retrieved 2026-01-03.
- ^ Page Module:Citation/CS1/styles.css has no content."Conformance". Unicode 16.0.0: Core Spec / Chapter 3 (6.0.0 ed.). Mountain View, California, US: The Unicode Consortium. 3.9 Unicode Encoding Forms. ISBN 978-1-936213-34-4. Archived from the original on 2025-07-01. Retrieved 2025-08-23.
Each encoding form maps the Unicode code points U+0000..U+D7FF and U+E000..U+10FFFF
- ^ a b Page Module:Citation/CS1/styles.css has no content."UTF-8 support in the Microsoft GDK". Microsoft Learn. Microsoft Game Development Kit (GDK). Retrieved 2023-03-05.
- ^ a b Page Module:Citation/CS1/styles.css has no content."Encoding Standard". encoding.spec.whatwg.org. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."File System Safe UCS — Transformation Format (FSS-UTF) - X/Open Preliminary Specification" (PDF). unicode.org.
- ^ Page Module:Citation/CS1/styles.css has no content."Appendix F. FSS-UTF / File System Safe UCS Transformation format" (PDF). The Unicode Standard 1.1. Archived (PDF) from the original on 2016-06-07. Retrieved 2016-06-07.
- ^ Page Module:Citation/CS1/styles.css has no content.Whistler, Kenneth (2001-06-12). "FSS-UTF, UTF-2, UTF-8, and UTF-16". Unicode Mail List (Mailing list). Archived from the original on 2016-06-07. Retrieved 2025-11-20.
- ^ a b c Page Module:Citation/CS1/styles.css has no content.Pike, Rob (2003-04-30). "UTF-8 history". Retrieved 2012-09-07.
- ^ At that time subtraction was slower than bit logic on many computers, and speed was considered necessary for acceptance.[citation needed]
- ^ Page Module:Citation/CS1/styles.css has no content.Pike, Rob; Thompson, Ken (1993). "Hello World or Καλημέρα κόσμε or こんにちは 世界" (PDF). Proceedings of the Winter 1993 USENIX Conference.
- ^ Page Module:Citation/CS1/styles.css has no content."USENIX WINTER 1993 CONFERENCE PROCEEDINGS". www.usenix.org. Retrieved 2025-11-20.
- ^ Script error: No such module "template wrapper".
- ^ Page Module:Citation/CS1/styles.css has no content.Pike, Rob (2012-09-06). "UTF-8 turned 20 years old yesterday". Archived from the original on 2012-11-30. Retrieved 2012-09-07.
- ^ Page Module:Citation/CS1/styles.css has no content.Lunde, Dr Ken (2022-01-09). "2022 Top Ten List: Why Support Beyond-BMP Code Points?". Medium. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content.Marin, Marvin (2000-10-17). Windows NT UNICODE vulnerability analysis. Web server folder traversal. SANS Institute (Report). Malware FAQ. MS00-078. Archived from the original on Aug 27, 2014.
- ^ Page Module:Citation/CS1/styles.css has no content."CVE-2008-2938". National Vulnerability Database (nvd.nist.gov). U.S. National Institute of Standards and Technology. 2008. Retrieved 2025-11-20.
- ^ a b Script error: No such module "template wrapper".
- ^ Page Module:Citation/CS1/styles.css has no content."DataInput (Java Platform SE 8 )". docs.oracle.com. Retrieved 2025-11-20.
- ^ a b c Page Module:Citation/CS1/styles.css has no content.von Löwis, Martin (2009-04-22). "Non-decodable Bytes in System Character Interfaces". Python Software Foundation. PEP 383. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."PEP 529 – Change Windows filesystem encoding to UTF-8 | peps.python.org". Python Enhancement Proposals (PEPs). Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."The WTF-8 encoding". wtf-8.codeberg.page. Retrieved 2025-11-30.
- ^ Page Module:Citation/CS1/styles.css has no content."Chapter 2" (PDF), The Unicode Standard — Version 15.0.0, p. 39
- ^ Page Module:Citation/CS1/styles.css has no content.Radzivilovsky, Pavel; Galka, Yakov; Novgorodov, Slava. "UTF-8 Everywhere Manifesto". UTF-8 Everywhere. Retrieved 25 March 2026.
- ^ Page Module:Citation/CS1/styles.css has no content.Davis, Mark (2012-02-03). "Unicode over 60 percent of the web". Official Google blog. Archived from the original on 2018-08-09. Retrieved 2020-07-24.
- ^ Page Module:Citation/CS1/styles.css has no content.Davis, Mark (2008-05-05). "Moving to Unicode 5.1". Official Google Blog. Retrieved 2023-03-13.
- ^ Page Module:Citation/CS1/styles.css has no content."Usage statistics and market share of ASCII for websites". W3Techs. December 2025. Retrieved 2025-12-17.
- ^ Script error: No such module "template wrapper".
- ^ Page Module:Citation/CS1/styles.css has no content."Using International Characters in Internet Mail". Internet Mail Consortium. 1998-08-01. Archived from the original on 2007-10-26. Retrieved 2007-11-08.
- ^ Page Module:Citation/CS1/styles.css has no content."Encoding Standard". encoding.spec.whatwg.org. Retrieved 2025-11-20.
- ^ a b Page Module:Citation/CS1/styles.css has no content."Specifying the document's character encoding". HTML 5.3 (Report). World Wide Web Consortium. 28 January 2021. Retrieved 2026-01-06.
- ^ Page Module:Citation/CS1/styles.css has no content."Specifying the document's character encoding". HTML Standard. WHATWG. 17 December 2025. Retrieved 2026-01-06.
- ^ Page Module:Citation/CS1/styles.css has no content."Choose text encoding when you open and save files". Microsoft Support. Retrieved 2021-11-01.
- ^ Page Module:Citation/CS1/styles.css has no content."Exporting a UTF-8
.txtfile from Word". support.3playmedia.com. 14 March 2023. - ^ Page Module:Citation/CS1/styles.css has no content.Abhinav, Ankit; Xu, Jazlyn (April 13, 2020). "How to open UTF-8
CSVfile in Excel without mis-conversion of characters in Japanese and Chinese language for both Mac and Windows?". Microsoft Support Community. Retrieved 2021-11-01. - ^ Page Module:Citation/CS1/styles.css has no content."Save a CSV file as UTF-8". RO CSVI. LibreOffice. Retrieved 2025-05-20.
- ^ Page Module:Citation/CS1/styles.css has no content.Galloway, Matt (October 2012). "Character encoding for iOS developers; or, UTF-8 what now?". www.galloway.me.uk. Retrieved 2021-01-02.
... in reality, you usually just assume UTF-8 since that is by far the most common encoding.
- ^ Page Module:Citation/CS1/styles.css has no content."Windows 10 Notepad is getting better UTF-8 encoding support". BleepingComputer. Retrieved 2021-03-24.
Microsoft is now defaulting to saving new text files as UTF-8 without BOM, as shown below.
- ^ Page Module:Citation/CS1/styles.css has no content."Customize the Windows 11 Start menu". docs.microsoft.com. Retrieved 2021-06-29.
Make sure your LayoutModification.json uses UTF-8 encoding.
- ^ Page Module:Citation/CS1/styles.css has no content."Set default for Encoding.default_external to UTF-8 on Windows". Ruby Issue Tracking System (bugs.ruby-lang.org). Ruby master. Feature #16604. Retrieved 2022-08-01.
- ^ Page Module:Citation/CS1/styles.css has no content."Feature #12650: Use UTF-8 encoding for ENV on Windows". Ruby Issue Tracking System. Ruby master. Retrieved 2022-08-01.
- ^ Page Module:Citation/CS1/styles.css has no content."New features in R 4.2.0". R bloggers. The Jumping Rivers Blog. 2022-04-01. Retrieved 2022-08-01.
- ^ Page Module:Citation/CS1/styles.css has no content."UTF-8 by default". openjdk.java.net. JEP 400. Retrieved 2022-03-30.
- ^ Page Module:Citation/CS1/styles.css has no content."What's new in Python 3.15". Python documentation. Retrieved 2025-12-23.
- ^ Page Module:Citation/CS1/styles.css has no content."Make UTF-8 mode default". peps.python.org. PEP 686. Retrieved 2023-07-26.
- ^ Page Module:Citation/CS1/styles.css has no content."add a new UTF-8 mode". peps.python.org. PEP 540. Retrieved 2022-09-23.
- ^ Page Module:Citation/CS1/styles.css has no content.Support for UTF-8 as a portable source file encoding (PDF). open-std.org (Report). 2022. p2295r6.
- ^ Page Module:Citation/CS1/styles.css has no content."Use UTF-8 code pages in Windows apps". Microsoft Learn. 20 August 2024. Retrieved 2024-09-24.
- ^ Page Module:Citation/CS1/styles.css has no content."Source code representation". The Go Programming Language Specification. golang.org (Report). Retrieved 2021-02-10.
- ^ Page Module:Citation/CS1/styles.css has no content.Tsai, Michael J. (21 March 2019). "UTF-8 string in Swift 5" (blog post). Retrieved 2021-03-15.
- ^ Page Module:Citation/CS1/styles.css has no content.Mattip (2019-03-24). "PyPy v7.1 released; now uses utf-8 internally for unicode strings". PyPy Status Blog. Retrieved 2025-11-20.
- ^ a b Page Module:Citation/CS1/styles.css has no content."Flexible String Representation". Python.org. PEP 393. Retrieved 2022-05-18.
- ^ Page Module:Citation/CS1/styles.css has no content."Common Object Structures". Python documentation. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."Unicode objects and codecs". Python documentation. Retrieved 2023-08-19.
UTF-8 representation is created on demand and cached in the Unicode object.
- ^ Page Module:Citation/CS1/styles.css has no content."PEP 623 – remove wstr from Unicode". Python.org. Retrieved 2020-11-21.
- ^ Page Module:Citation/CS1/styles.css has no content.Wouters, Thomas (2023-07-11). "Python 3.12.0 beta 4 released". Python Insider (blog post). Retrieved 2023-07-26.
The deprecated
wstrandwstr_lengthmembers of the C implementation of unicode objects were removed, per PEP 623. - ^ Page Module:Citation/CS1/styles.css has no content."validate-charset (validate for compatible characters)". docs.microsoft.com. Retrieved 2021-07-19.
Visual Studio uses UTF-8 as the internal character encoding during conversion between the source character set and the execution character set.
- ^ Page Module:Citation/CS1/styles.css has no content."Introducing UTF-8 support for SQL Server". techcommunity.microsoft.com. 2019-07-02. Retrieved 2021-08-24.
- ^ Page Module:Citation/CS1/styles.css has no content."Character (Java SE 24 & JDK 24)". Oracle Corporation. 2025. Retrieved 2025-04-08.
- ^ Page Module:Citation/CS1/styles.css has no content."Java SE documentation for Interface java.io.DataInput, subsection on Modified UTF-8". Oracle Corporation. 2015. Retrieved 2015-10-16.
- ^ a b Page Module:Citation/CS1/styles.css has no content."The Java Virtual Machine Specification, section 4.4.7: The CONSTANT_Utf8_info Structure". Oracle Corporation. 2015. Retrieved 2015-10-16.
- ^
InputStreamReaderandOutputStreamWriter - ^ Page Module:Citation/CS1/styles.css has no content."Java Object Serialization Specification, chapter 6: Object Serialization Stream Protocol, section 2: Stream Elements". Oracle Corporation. 2010. Retrieved 2015-10-16.
- ^
DataInputandDataOutput - ^ Page Module:Citation/CS1/styles.css has no content."Java Native Interface Specification, chapter 3: JNI Types and Data Structures, section: Modified UTF-8 Strings". Oracle Corporation. 2015. Retrieved 2015-10-16.
- ^ Page Module:Citation/CS1/styles.css has no content."ART and Dalvik". Android Open Source Project. Archived from the original on 2013-04-26. Retrieved 2013-04-09.
- ^ Page Module:Citation/CS1/styles.css has no content."UTF-8 bit by bit". Tcler's Wiki. 2001-02-28. Retrieved 2022-09-03.
- ^ Page Module:Citation/CS1/styles.css has no content."encoding". Raku Documentation. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."Unicode". Raku Documentation. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."PEP 540 – Add a new UTF-8 Mode". Python Enhancement Proposals (PEPs). Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."NEP 55 – Add a UTF-8 variable-width string DType to NumPy". NumPy Enhancement Proposals. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."RTFM optu8to16(3), optu8to16vis(3)". MirBSD. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content.Davis, Mark; Suignard, Michel (2014). "3.7 Enabling Lossless Conversion". Unicode Security Considerations. Unicode Technical Report #36. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."Ext4 General Information". Linux Kernel documentation. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."Frequently Asked Questions". Apple File System Guide. Apple. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."Technical Note TN1150: HFS Plus Volume Format". Apple. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."Encoding Standard § 4.2. Names and labels". WHATWG. Retrieved 2018-04-29.
- ^ Page Module:Citation/CS1/styles.css has no content."Character Sets". Internet Assigned Numbers Authority. 2013-01-23. Retrieved 2013-02-08.
- ^ Page Module:Citation/CS1/styles.css has no content."BOM". suikawiki (in 日本語). Archived from the original on 2009-01-17.
- ^ Page Module:Citation/CS1/styles.css has no content.Davis, Mark. "Forms of Unicode". IBM. Archived from the original on 2005-05-06. Retrieved 2013-09-18.
- ^ Page Module:Citation/CS1/styles.css has no content.Liviu (2014-02-07). "UTF-8 codepage 65001 in Windows 7 - part I". Retrieved 2018-01-30.
Previously under XP (and, unverified, but probably Vista, too) for loops simply did not work while codepage 65001 was active
- ^ Page Module:Citation/CS1/styles.css has no content."MySQL :: MySQL 8.0 Reference Manual :: 10.9.1 The utf8mb4 Character Set (4-Byte UTF-8 Unicode Encoding)". MySQL 8.0 Reference Manual. Oracle Corporation. Retrieved 2023-03-14.
- ^ Page Module:Citation/CS1/styles.css has no content."MySQL :: MySQL 8.0 Reference Manual :: 10.9.2 The utf8mb3 Character Set (3-Byte UTF-8 Unicode Encoding)". MySQL 8.0 Reference Manual. Oracle Corporation. Retrieved 2023-02-24.
- ^ Page Module:Citation/CS1/styles.css has no content."Database Globalization Support Guide". docs.oracle.com. Retrieved 2023-03-16.
- ^ Page Module:Citation/CS1/styles.css has no content.Hood, Doug (July 10, 2025). "Why the Database Character Set Matters". blogs.oracle.com. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."HP PCL Symbol Sets | Printer Control Language (PCL & PXL) Support Blog". 2015-02-19. Archived from the original on 2015-02-19. Retrieved 2018-01-30.
- ^ Page Module:Citation/CS1/styles.css has no content."ISO/IEC 10646:2020/Amd 1:2023". ISO. Retrieved 2025-11-20.
- ^ Page Module:Citation/CS1/styles.css has no content."UAX #27: Unicode 3.1". www.unicode.org. Retrieved 2025-11-20.
- ^ The Unicode Standard, Version 5.0 §3.9–§3.10 ch. 3, 2006.
External links
- Original UTF-8 paper (or pdf) for Plan 9 from Bell Labs
- History of UTF-8 by Rob Pike
- Characters, Symbols and the Unicode Miracle on YouTube
Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Template:Rob Pike navbox Template:Ken Thompson navbox