Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

UTF-8

From Wikipedia, the free encyclopedia
ASCII-compatible variable-width encoding of Unicode
UTF-8
StandardUnicode Standard
ClassificationUnicode Transformation Format,extended ASCII,variable-length encoding
ExtendsASCII
Transforms / EncodesISO/IEC 10646 (Unicode)
Preceded byUTF-1

UTF-8 is acharacter encoding standard used for electronic communication. Defined by theUnicode Standard, the name is derived fromUnicode Transformation Format – 8-bit.[1] As of July 2025, almost every webpage is transmitted as UTF-8.[2]

UTF-8 supports all 1,112,064[3] valid Unicodecode points using avariable-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 forbackward compatibility withASCII: 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 anyextended 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

[edit]
See also:Universal Coded Character Set § History

TheInternational Organization for Standardization (ISO) set out to compose a universal multi-byte character set in 1989. The draft ISO 10646 standard contained a non-requiredannex calledUTF-1 that provided a byte stream encoding of its32-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 (orextended ASCII), because it could contain continuation bytes in the range0x210x7E that meant something else in ASCII, e.g.,0x2F for/, theUnixpath directory separator.

In July 1992, theX/Open committee XoJIG was looking for a better encoding. Dave Prosser ofUnix System Laboratories submitted a proposal for one that had faster implementation characteristics and introduced the improvement that 7-bit ASCII characters wouldonly represent themselves; multi-byte sequences would only include bytes with the high bit set. The nameFile 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 anIBM X/Open representative to interested parties.

A modification byKen Thompson of thePlan 9 operating system group atBell Labs made itself-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 preventedoverlong encodings.[9][10] Thompson's design was outlined on September 2, 1992, on aplacemat in a New Jersey diner withRob Pike. In the following days, Pike and Thompson implemented it and updatedPlan 9 to use it throughout,[11] and then communicated their success back to X/Open, which accepted it as the specification forFSS-UTF.[9] UTF-8 was first officially presented at theUSENIX conference inSan Diego, from January 25 to 29, 1993.[12] TheInternet 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, replacingSingle Byte Character Sets such asLatin-1 in older RFCs.[13]

In November 2003, UTF-8 was restricted byRFC 3629 to match the constraints of theUTF-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 atU+10FFFF removed more than 48% of the four-byte sequences and all five- and six-byte sequences.[14]

Description

[edit]

UTF-8 encodes code points in one to four bytes, depending on the value of the code point. In the following table, the charactersu toz are replaced by the bits of the code point, from the positionsU+uvwxyz:

Code point ↔ UTF-8 conversion
First code pointLast code pointByte 1Byte 2Byte 3Byte 4
U+0000U+007F0yyyzzzz
U+0080U+07FF110xxxyy10yyzzzz
U+0800U+FFFF1110wwww10xxxxyy10yyzzzz
U+010000U+10FFFF11110uvv10vvwwww10xxxxyy10yyzzzz

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 allLatin-script alphabets, and alsoIPA extensions,Greek,Cyrillic,Coptic,Armenian,Hebrew,Arabic,Syriac,Thaana andN'Ko alphabets, as well asCombining Diacritical Marks. Three bytes are needed for the remaining 61,440 codepoints of theBasic Multilingual Plane (BMP), including mostChinese, Japanese and Korean characters. Four bytes are needed for the 1,048,576 non-BMP code points, which includeemoji, less commonCJK characters, and other useful characters.[15]

UTF-8 is aprefix 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 asShift-JIS, it isself-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 sortingUTF-32 strings.

Overlong encodings

[edit]

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 anoverlong encoding. These are a security problem because they allow character sequences such as malicious JavaScript and../ to bypass security validations, which has been reported in numerous high-profile products such as Microsoft'sIIS web server[16] and Apache's Tomcat servlet container.[17] Overlong encodings should therefore be considered an error and never decoded.Modified UTF-8 allows the two-byte overlong encoding0xC0,0x80, forU+0000 instead of just the single-byte0x00.[18]

Error handling

[edit]

Not all sequences of bytes are valid UTF-8. A UTF-8 decoder should be prepared for:

  • A "continuation byte" (0x800xBF) at the start of a character
  • A non-continuation byte (or the string ending) before the end of a character
  • An overlong encoding (0xC0,0xC1,0xE0 followed by less than0xA0, or0xF0 followed by less than0x90)
  • A 4-byte sequence that decodes to a value greater thanU+10FFFF (0xF4 followed by0x90 or greater,0xF50xFF)

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 asNUL, slash, or quotes, leading to security vulnerabilities. It is also 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 adenial of service, for instance early versions of Python 3.0 would exit immediately if the command line orenvironment variables contained invalid UTF-8.[20]

RFC 3629 states "Implementations of the decoding algorithm MUST protect against decoding invalid sequences."[21]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." The standard now recommends replacing each error with thereplacement character "�" (U+FFFD) and continue decoding.

Some decoders consider the sequenceE1,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, soE1,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 are21,952 different possible errors. Many decoders instead makeeach byte be an error, in which caseE1,A0,20 istwo errors followed by a space; there are now only 128 different errors which makes it practical to store the errors in the output string,[22] 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 a115 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 aByte Order Mark or any other metadata.

Surrogates

[edit]

Since RFC 3629 (November 2003), the high and low surrogates used byUTF-16 (U+D800 throughU+DFFF) are not legal Unicode values, and their UTF-8 encodings must be treated as an invalid byte sequence.[21] These encodings all start with0xED followed by0xA0 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.[23] UTF-8 that allows these surrogate halves has been (informally) calledWTF-8,[24] while another variation that also encodes all non-BMP characters as two surrogates (6 bytes instead of 4) is calledCESU-8.

Byte map

[edit]

The chart below gives the detailed meaning of each byte in a stream encoded in UTF-8.

0123456789ABCDEF
0
1
2!"#$%&'()*+,-./
30123456789:;<=>?
4@ABCDEFGHIJKLMNO
5PQRSTUVWXYZ[\]^_
6`abcdefghijklmno
7pqrstuvwxyz{|}~
8
9
A
B
C2222222222222222
D2222222222222222
E3333333333333333
F44444444555566
ASCII control character
ASCII character
Continuation byte
First byte of a N-byte code unit sequence
Not all continuation bytes are allowed
Unused

Byte-order mark

[edit]

If the Unicodebyte-order markU+FEFF is at the start of a UTF-8 file, the first three bytes will be0xEF,0xBB,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.[25] 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 instring 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).[26]

Comparison to UTF-16

[edit]
See also:Comparison of Unicode encodings
icon
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.
Find sources: "UTF-8" comparison to UTF-16 – news ·newspapers ·books ·scholar ·JSTOR
(December 2024) (Learn how and when to remove this message)

For a long time there was considerable argument as to whether it was better to process text inUTF-16 or in UTF-8. The primary advantage of UTF-16 is that theWindows 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 asQt 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 thanU+FFFF andcombining 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 pointsU+0800U+FFFF 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 spaces, newlines, digits, punctuation, English words, andmarkup[27]. UTF-8 has the advantages of being trivial to retrofit to any system that could handle anextended ASCII, not having byte-order problems, and taking about half the space for any language using mostlyLatin letters.

Implementations and adoption

[edit]
Declared character set for the 10 million most popular websites from 2010 to 2021
Use of the main encodings on the web from 2001 to 2012 as recorded by Google,[28] with UTF-8 overtaking all others in 2008 and over 60% of the web in 2012 (since then hitting 100% use). UTF-8 is the only encoding of Unicode (explicitly) listed there, and the rest only provide subsets of Unicode. The ASCII-only figure includes all web pages that only contain ASCII characters, regardless of the declared header.
See also:Popularity of text encodings

UTF-8 has been the most common encoding for theWorld Wide Web since 2008.[29] As of July 2025[update], UTF-8 is used by 98.8% 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.[30] 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)).[31] UTF-8 is also the recommendation from theWHATWG for HTML andDOM specifications, and stating "UTF-8 encoding is the most appropriate encoding for interchange ofUnicode"[5] and theInternet Mail Consortium recommends that all e‑mail programs be able to display and create mail using UTF-8.[32][33] TheWorld 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".[34]

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 includeMicrosoft Word,[35][36][37]Microsoft Excel (Office 2003 and later),[38][39]Google Drive,LibreOffice,[40] 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.[41]Windows Notepad, in all currently supported versions of Windows, defaults to writing UTF-8 without a BOM (a change fromWindows 7Notepad), bringing it into line with most other text editors.[42] Some system files onWindows 11 require UTF-8[43] with no requirement for a BOM, and almost all files on macOS and Linux are required to be UTF-8 without a BOM.[citation needed] Programming languages that default to UTF-8 forI/O includeRuby 3.0,[44][45]R 4.2.2,[46]Raku andJava 18.[47] Although the current version ofPython requires an option toopen() to read/write UTF-8,[48] plans exist to make UTF-8 I/O the default in Python 3.15.[49]C++23 adopts UTF-8 as the only portable source code file format.[50]

Backwards compatibility is a serious impediment to changing code and APIs usingUTF-16 to use UTF-8, but this is happening. As of May 2019[update], Microsoftadded 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,[51] and even states "UTF-16 [...] is a unique burden that Windows places on code that targets multiple platforms".[4]The default string primitive inGo,[52]Julia,Rust,Swift (since version 5),[53] andPyPy[54] uses UTF-8 internally in all cases. Python (since version 3.3) uses UTF-8 internally for Python C API extensions[55][56] and sometimes for strings[55][57] and a future version of Python is planned to store strings as UTF-8 by default.[58][59] Modern versions ofMicrosoft Visual Studio use UTF-8 internally.[60] Microsoft's SQL Server 2019 added support for UTF-8, and using it results in a 35% speed increase, and "nearly 50% reduction in storage requirements."[61]

Java internally uses UTF-16 for thechar data type and, consequentially, theCharacter,String, and theStringBuffer classes,[62] but for I/O usesModified UTF-8 (MUTF-8), in which thenull characterU+0000 uses the two-byte overlong encoding0xC00x80, instead of just0x00.[18] Modified UTF-8 strings never contain any actual null bytes but can contain all Unicode code points includingU+0000,[63] which allows such strings (with a null byte appended) to be processed by traditionalnull-terminated string functions. Java reads and writes normal UTF-8 to files and streams,[64] but it uses Modified UTF-8 for objectserialization,[65][66] for theJava Native Interface,[67] and for embedding constant strings inJava class files.[63] The dex format defined byDalvik also uses the same modified UTF-8 to represent string values.[68]Tcl also uses the same modified UTF-8[69] as Java for internal representation of Unicode data, but uses strict CESU-8 for external data. All known Modified UTF-8 implementations also treat the surrogate pairs as inCESU-8.

TheRaku programming language (formerly Perl 6) usesutf-8 encoding by default for I/O (Perl 5 also supports it); though that choice in Raku also implies "normalization into UnicodeNFC (normalization form canonical). In some cases the user will want to ensure no normalization is done; for thisutf8-c8" can be used.[70] ThatUTF-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.[71]

Version 3 of thePython 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[72]); 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 toU+DC80...U+DCFF which are low (trailing) surrogate values and thus "invalid" UTF-16, as used byPython'sPEP 383 (or "surrogateescape") approach.[22]NumPy version 2.0, and its file formats, support UTF-8 (adding StringDType for it).[73] Another encoding calledMirBSD OPTU-8/16 converts them toU+EF80...U+EFFF in aPrivate Use Area.[74] 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.[75]

Linux and macOS filesystems support UTF-8:ext4[76] and Apple'sAPFS.[77] Apple's olderHFS Plus usesUTF-16 for file names, but uses UTF-8 insymbolic links.[78] Windows' filesystem,NTFS, uses UTF-16 for file names.

Standards

[edit]

The official name for the encoding isUTF-8, the spelling used in all Unicode Consortium documents. Thehyphen-minus is required and no spaces are allowed. Some other names used are:

  • Most standards are also case-insensitive andutf-8 is often used.[citation needed]
  • Web standards (which includeCSS,HTML,XML, andHTTP headers) also allowutf8 and many other aliases.[79]
  • The officialInternet Assigned Numbers Authority listscsUTF8 as the only alias,[80] which is rarely used.
  • In some localesUTF-8N means UTF-8without abyte-order mark (BOM), and in this caseUTF-8may imply thereis a BOM.[81][82]
  • InWindows, UTF-8 iscodepage65001[83] with the symbolic nameCP_UTF8 in source code.
  • InMySQL, UTF-8 is calledutf8mb4,[84] whileutf8 andutf8mb3 refer to the obsoleteCESU-8 variant.[85]
  • InOracle Database,AL32UTF8 means UTF-8 (since version 9.0), whileUTF8 means CESU-8 (since 8.0),[86] andOracle's UTF8 encoding should not be used since it's only a subset of the full (UTF8/AL32UTF8; missing support for Japanese and Chinese, only supporting Unicode 3.0, not 4-byte form;AL32UTFFSS is another incomplete subset for older Oracle databases).[87]
  • In HPPCL, the Symbol-ID for UTF-8 is18N.[88]

There are several current definitions of UTF-8 in various standards documents:

  • RFC 3629 / STD 63 (2003), which establishes UTF-8 as a standard internet protocol element
  • RFC 5198 defines UTF-8NFC for Network Interchange (2008)
  • ISO/IEC 10646:2020/Amd 1:2023[89]
  • 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)
  • RFC 2044 (1996)
  • RFC 2279 (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)[90]
  • The Unicode Standard, Version 5.0 (2006)[91]
  • 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

[edit]

References

[edit]
  1. ^abcUnicode® 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. Retrieved2025-08-23.
  2. ^ab"Usage Survey of Character Encodings broken down by Ranking".W3Techs. August 2025. Retrieved2025-08-28.
  3. ^"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. Retrieved2025-08-23.Each encoding form maps the Unicode code points U+0000..U+D7FF and U+E000..U+10FFFF
  4. ^ab"UTF-8 support in the Microsoft GDK".Microsoft Learn. Microsoft Game Development Kit (GDK). Retrieved2023-03-05.
  5. ^ab"Encoding Standard".encoding.spec.whatwg.org. Retrieved2025-11-20.
  6. ^"File System Safe UCS — Transformation Format (FSS-UTF) - X/Open Preliminary Specification"(PDF).unicode.org.
  7. ^"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. Retrieved2016-06-07.
  8. ^Whistler, Kenneth (2001-06-12)."Unicode Mail List Archive: FSS-UTF, UTF-2, UTF-8, and UTF-16".unicode.org. Archived fromthe original on 2016-06-07. Retrieved2025-11-20.
  9. ^abcPike, Rob (2003-04-30)."UTF-8 history". Retrieved2012-09-07.
  10. ^At that time subtraction was slower than bit logic on many computers, and speed was considered necessary for acceptance.[citation needed]
  11. ^Pike, Rob; Thompson, Ken (1993)."Hello World or Καλημέρα κόσμε or こんにちは 世界"(PDF).Proceedings of the Winter 1993 USENIX Conference.
  12. ^"USENIX WINTER 1993 CONFERENCE PROCEEDINGS".www.usenix.org. Retrieved2025-11-20.
  13. ^Alvestrand, Harald T. (January 1998).IETF Policy on Character Sets and Languages.IETF.doi:10.17487/RFC2277. BCP 18. RFC2277.
  14. ^Pike, Rob (2012-09-06)."UTF-8 turned 20 years old yesterday". Archived fromthe original on 2012-11-30. Retrieved2012-09-07.
  15. ^Lunde, Dr Ken (2022-01-09)."2022 Top Ten List: Why Support Beyond-BMP Code Points?".Medium. Retrieved2025-11-20.
  16. ^Marin, Marvin (2000-10-17).Windows NT UNICODE vulnerability analysis. Web server folder traversal.SANS Institute (Report). Malware FAQ. MS00-078. Archived fromthe original on Aug 27, 2014.
  17. ^"CVE-2008-2938".National Vulnerability Database (nvd.nist.gov). U.S.National Institute of Standards and Technology. 2008. Retrieved2025-11-20.
  18. ^ab"Java SE documentation for Interface java.io.DataInput, subsection on Modified UTF-8".Oracle Corporation. 2015. Retrieved2015-10-16.
  19. ^"DataInput (Java Platform SE 8 )".docs.oracle.com. Retrieved2025-11-20.
  20. ^"PEP 383 – Non-decodable Bytes in System Character Interfaces | peps.python.org".Python Enhancement Proposals (PEPs). Retrieved2025-11-20.
  21. ^abYergeau, F. (November 2003).UTF-8, a transformation format of ISO 10646.IETF.doi:10.17487/RFC3629. STD 63. RFC3629. RetrievedAugust 20, 2020.
  22. ^abvon Löwis, Martin (2009-04-22)."Non-decodable Bytes in System Character Interfaces".Python Software Foundation. PEP 383. Retrieved2025-11-20.
  23. ^"PEP 529 – Change Windows filesystem encoding to UTF-8 | peps.python.org".Python Enhancement Proposals (PEPs). Retrieved2025-11-20.
  24. ^"The WTF-8 encoding".simonsapin.github.io. Retrieved2025-11-20.
  25. ^"Chapter 2"(PDF),The Unicode Standard — Version 15.0.0, p. 39
  26. ^"UTF-8 and Unicode FAQ".www.cl.cam.ac.uk. Retrieved2025-11-20.
  27. ^"Kí tự đặc biệt".Ki Tu GenZ. 2025-07-23. Retrieved2025-11-20.
  28. ^Davis, Mark (2012-02-03)."Unicode over 60 percent of the web".Official Google blog.Archived from the original on 2018-08-09. Retrieved2020-07-24.
  29. ^Davis, Mark (2008-05-05)."Moving to Unicode 5.1".Official Google blog. Retrieved2023-03-13.
  30. ^"Usage statistics and market share of ASCII for websites".W3Techs. January 2025. Retrieved2025-01-07.
  31. ^Bray, Tim (December 2017). Bray, Tim (ed.).The JavaScript Object Notation (JSON) Data Interchange Format. IETF.doi:10.17487/RFC8259.RFC8259. Retrieved16 February 2018.
  32. ^"Using International Characters in Internet Mail". Internet Mail Consortium. 1998-08-01. Archived fromthe original on 2007-10-26. Retrieved2007-11-08.
  33. ^"Encoding Standard".encoding.spec.whatwg.org. Retrieved2025-11-20.
  34. ^"Specifying the document's character encoding".HTML 5.2 (Report).World Wide Web Consortium. 14 December 2017. Retrieved2018-06-03.
  35. ^"Choose text encoding when you open and save files".Microsoft Support (support.microsoft.com). Retrieved2021-11-01.
  36. ^"UTF-8 - Character encoding of MicrosoftWordDOC andDOCX files?".Stack Overflow. Retrieved2021-11-01.
  37. ^"Exporting a UTF-8.txt file fromWord".support.3playmedia.com. 14 March 2023.
  38. ^"AreXLSX files UTF-8 encoded, by definition?".Stack Overflow. Excel. Retrieved2021-11-01.
  39. ^Abhinav, Ankit; Xu, Jazlyn (April 13, 2020)."How to open UTF-8CSV file inExcel without mis-conversion of characters in Japanese and Chinese language for both Mac and Windows?".Microsoft Support Community. Retrieved2021-11-01.
  40. ^"Save a CSV file as UTF-8".RO CSVI. LibreOffice. Retrieved2025-05-20.
  41. ^Galloway, Matt (October 2012)."Character encoding for iOS developers; or, UTF-8 what now?".www.galloway.me.uk. Retrieved2021-01-02.... in reality, you usually just assume UTF-8 since that is by far the most common encoding.
  42. ^"Windows 10 Notepad is getting better UTF-8 encoding support".BleepingComputer. Retrieved2021-03-24.Microsoft is now defaulting to saving new text files as UTF-8 without BOM, as shown below.
  43. ^"Customize the Windows 11Start menu".docs.microsoft.com. Retrieved2021-06-29.Make sure your LayoutModification.json uses UTF-8 encoding.
  44. ^"Set default for Encoding.default_external to UTF-8 on Windows".Ruby Issue Tracking System (bugs.ruby-lang.org). Ruby master. Feature #16604. Retrieved2022-08-01.
  45. ^"Feature #12650: Use UTF-8 encoding for ENV on Windows".Ruby Issue Tracking System (bugs.ruby-lang.org). Ruby master. Retrieved2022-08-01.
  46. ^"New features in R 4.2.0".R bloggers (r-bloggers.com). The Jumping Rivers Blog. 2022-04-01. Retrieved2022-08-01.
  47. ^"UTF-8 by default".openjdk.java.net. JEP 400. Retrieved2022-03-30.
  48. ^"add a new UTF-8 mode".peps.python.org. PEP 540. Retrieved2022-09-23.
  49. ^"Make UTF-8 mode default".peps.python.org. PEP 686. Retrieved2023-07-26.
  50. ^Support for UTF-8 as a portable source file encoding(PDF).open-std.org (Report). 2022. p2295r6.
  51. ^"Use UTF-8 code pages in Windows apps".Microsoft Learn. 20 August 2024. Retrieved2024-09-24.
  52. ^"Source code representation". TheGo Programming Language Specification.golang.org (Report). Retrieved2021-02-10.
  53. ^Tsai, Michael J. (21 March 2019)."UTF-8 string in Swift 5" (blog post). Retrieved2021-03-15.
  54. ^Mattip (2019-03-24)."PyPy Status Blog: PyPy v7.1 released; now uses utf-8 internally for unicode strings".PyPy Status Blog. Retrieved2025-11-20.
  55. ^ab"Flexible String Representation".Python.org. PEP 393. Retrieved2022-05-18.
  56. ^"Common Object Structures".Python documentation. Retrieved2025-11-20.
  57. ^"Unicode objects and codecs".Python documentation. Retrieved2023-08-19.UTF-8 representation is created on demand and cached in the Unicode object.
  58. ^"PEP 623 – remove wstr from Unicode".Python.org. Retrieved2020-11-21.
  59. ^Wouters, Thomas (2023-07-11)."Python 3.12.0 beta 4 released".Python Insider (pythoninsider.blogspot.com) (blog post). Retrieved2023-07-26.The deprecatedwstr andwstr_length members of the C implementation of unicode objects were removed, per PEP 623.
  60. ^"validate-charset (validate for compatible characters)".docs.microsoft.com. Retrieved2021-07-19.Visual Studio uses UTF-8 as the internal character encoding during conversion between the source character set and the execution character set.
  61. ^"Introducing UTF-8 support for SQL Server".techcommunity.microsoft.com. 2019-07-02. Retrieved2021-08-24.
  62. ^"Character (Java SE 24 & JDK 24)".Oracle Corporation. 2025. Retrieved2025-04-08.
  63. ^ab"The Java Virtual Machine Specification, section 4.4.7: "The CONSTANT_Utf8_info Structure"".Oracle Corporation. 2015. Retrieved2015-10-16.
  64. ^InputStreamReader andOutputStreamWriter
  65. ^"Java Object Serialization Specification, chapter 6: Object Serialization Stream Protocol, section 2: Stream Elements".Oracle Corporation. 2010. Retrieved2015-10-16.
  66. ^DataInput andDataOutput
  67. ^"Java Native Interface Specification, chapter 3: JNI Types and Data Structures, section: Modified UTF-8 Strings".Oracle Corporation. 2015. Retrieved2015-10-16.
  68. ^"ART and Dalvik".Android Open Source Project. Archived fromthe original on 2013-04-26. Retrieved2013-04-09.
  69. ^"UTF-8 bit by bit".Tcler's Wiki. 2001-02-28. Retrieved2022-09-03.
  70. ^"encoding | Raku Documentation".docs.raku.org. Retrieved2025-11-20.
  71. ^"Unicode | Raku Documentation".docs.raku.org. Retrieved2025-11-20.
  72. ^"PEP 540 – Add a new UTF-8 Mode | peps.python.org".Python Enhancement Proposals (PEPs). Retrieved2025-11-20.
  73. ^"NEP 55 — Add a UTF-8 variable-width string DType to NumPy — NumPy Enhancement Proposals".numpy.org. Retrieved2025-11-20.
  74. ^"RTFM optu8to16(3), optu8to16vis(3)".www.mirbsd.org. Retrieved2025-11-20.
  75. ^Davis, Mark; Suignard, Michel (2014)."3.7 Enabling Lossless Conversion".Unicode Security Considerations. Unicode Technical Report #36. Retrieved2025-11-20.
  76. ^"Ext4 General Information — the Linux Kernel documentation". Retrieved2025-11-20.
  77. ^"Frequently Asked Questions".Apple File System Guide.Apple. Retrieved2025-11-20.
  78. ^"Technical Note TN1150: HFS Plus Volume Format".Apple. Retrieved2025-11-20.
  79. ^"Encoding Standard § 4.2. Names and labels".WHATWG. Retrieved2018-04-29.
  80. ^"Character Sets".Internet Assigned Numbers Authority. 2013-01-23. Retrieved2013-02-08.
  81. ^"BOM".suikawiki (in Japanese). Archived fromthe original on 2009-01-17.
  82. ^Davis, Mark."Forms of Unicode".IBM. Archived fromthe original on 2005-05-06. Retrieved2013-09-18.
  83. ^Liviu (2014-02-07)."UTF-8 codepage 65001 in Windows 7 - part I". Retrieved2018-01-30.Previously under XP (and, unverified, but probably Vista, too) for loops simply did not work while codepage 65001 was active
  84. ^"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. Retrieved2023-03-14.
  85. ^"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. Retrieved2023-02-24.
  86. ^"Database Globalization Support Guide".docs.oracle.com. Retrieved2023-03-16.
  87. ^Hood, Doug (July 10, 2025)."Why the Database Character Set Matters".blogs.oracle.com. Retrieved2025-11-20.
  88. ^"HP PCL Symbol Sets | Printer Control Language (PCL & PXL) Support Blog". 2015-02-19. Archived fromthe original on 2015-02-19. Retrieved2018-01-30.
  89. ^"ISO/IEC 10646:2020/Amd 1:2023".ISO. Retrieved2025-11-20.
  90. ^"UAX #27: Unicode 3.1".www.unicode.org. Retrieved2025-11-20.
  91. ^The Unicode Standard, Version 5.0§3.9–§3.10 ch. 3, 2006.

External links

[edit]
Unicode
Code points
Characters
Special purpose
Lists
Processing
Algorithms
Comparison of encodings
On pairs of
code points
Usage
Related standards
Related topics
Scripts and symbols in Unicode
Common and
inherited scripts
Modern scripts
Ancient and
historic scripts
Notational scripts
Symbols, emojis
Early telecommunications
ISO/IEC 8859
Bibliographic use
National standards
ISO/IEC 2022
Mac OSCode pages
("scripts")
DOS code pages
IBM AIX code pages
Windows code pages
EBCDIC code pages
DEC terminals (VTx)
Platform specific
Unicode /ISO/IEC 10646
TeX typesetting system
Miscellaneous code pages
Control character
Related topics
Operating systems
Programming languages
Software
Publications
Other
Operating systems
Programming languages
Software
Associated institutions
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=UTF-8&oldid=1323221369"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp