Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect description of UTF-8 #5111

Open
PeterCon opened this issue Aug 20, 2024 · 0 comments
Open

incorrect description of UTF-8 #5111

PeterCon opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels

Comments

@PeterCon
Copy link
Contributor

PeterCon commented Aug 20, 2024

Type of issue

Other (describe below)

Feedback

In this commit, the description of UTF-8 was changed to state that UTF-8 supports sequences of 1 to 6 bytes instead of 1 to 4 bytes. It supported this by referencing an annex of Unicode 1.1. However, that annex was not describing UTF-8 but rather a (now-obsolete) specification known as "UTF-1". Moreover, while early versions of Unicode did allow conformant implementations to interpret UTF-8 sequences of up to 6 bytes, Unicode changed the specification for UTF-8 in Unicode 3.1 (2001) to completely exclude sequences of more than four bytes. (That was done to eliminate a class of security vulnerabilities.) That commit from 2019 should not have been accepted.

See https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G31703 for Unicode's specification of UTF-8

Page URL

https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page

Content source URL

https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/design/globalizing/use-utf8-code-page.md

Author

@Karl-Bridge-Microsoft

Document Id

6fcd9265-4bfc-657a-9177-7c958f1b4b06

PeterCon added a commit to PeterCon/windows-dev-docs that referenced this issue Aug 20, 2024
Correction to the description of UTF-8 for MicrosoftDocs#5111.
Karl-Bridge-Microsoft added a commit that referenced this issue Aug 20, 2024
Update use-utf8-code-page.md (#5111)
@Karl-Bridge-Microsoft Karl-Bridge-Microsoft self-assigned this Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants