提交 36288fcd 编写于 作者: H Hixie

Specs: Be more precise about how to decode UTF-8 and the implications thereof

Review URL: https://codereview.chromium.org/679313002
上级 adf81c50
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册