-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
iso8859-1 vs windows-1252 #25851
Copy link
Copy link
Closed
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.string_decoderIssues and PRs related to the string_decoder subsystem.Issues and PRs related to the string_decoder subsystem.
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.string_decoderIssues and PRs related to the string_decoder subsystem.Issues and PRs related to the string_decoder subsystem.
This is somewhat related to #13722, but not quite.
Wikipedia contains the gist:
Chromium's ICU interprets "iso8859-1" to mean Windows-1252. Node.js does not. The WHATWG spec suggests Chromium's behavior to be correct.
The consequence of all of this is that when I build Node.js with Chromium's ICU,
test/parallel/test-icu-transcode.jsfails due to the character "€", which Windows-1252 includes, but ISO-8859-1 does not.I propose: