Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1675)

Unified Diff: sky/specs/parsing.md

Issue 679313002: Specs: Be more precise about how to decode UTF-8 and the implications thereof (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/parsing.md
diff --git a/sky/specs/parsing.md b/sky/specs/parsing.md
index e5e9f283e8c60a22a4dbaa21314d5b9b7208c430..7622fa11c59902079ad1ddf0f55ff0c30efb3afd 100644
--- a/sky/specs/parsing.md
+++ b/sky/specs/parsing.md
@@ -28,9 +28,12 @@ object.
Decoding stage
--------------
-To decode a sequence of bytes _bytes_ for parsing, the [UTF-8
-decoder](https://encoding.spec.whatwg.org/#utf-8-decoder) must be used
-to transform _bytes_ into a sequence of characters _characters_.
+To decode a sequence of bytes _bytes_ for parsing, the [utf-8
+decode](https://encoding.spec.whatwg.org/#utf-8-decode) algorithm must
+be used to transform _bytes_ into a sequence of characters
+_characters_.
+
+Note: The decoder will strip a leading BOM if any.
This sequence must then be passed to the normalisation stage.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698