-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.
Description
- Version: tested v8.5.0 / master
- Subsystem: core
from discussion in #16876
in Node.js,
new (require('util').TextDecoder)('utf-8')
.decode(Buffer.from([0xF0, 0x80, 0x80])).length === 1 // U+FFFDBut in Safari/FF/Chrome,
new TextDecoder('utf-8')
.decode(new Uint8Array([0xF0, 0x80, 0x80])).length === 3 // U+FFFD U+FFFD U+FFFDthink Node.js is wrong here per https://encoding.spec.whatwg.org/#utf-8-decoder
//cc @mathiasbynens
Metadata
Metadata
Assignees
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.