Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update doc/api/buffer.md
Co-Authored-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
rexagod and Trott authored Jul 5, 2019
commit 3e7d1bbeb7fc0978a515c193878d3e8f838ac06b
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ in rare cases) `'ascii'` data, and the valid [`UTF-8` code units](https://en.wik
the replacement character (`�`) is returned,
and no exception will be thrown.

It should also be noted that a `U+FFFD` replacement value
A `U+FFFD` replacement value
(representing the aforementioned replacement character) will be returned
in case of decoding errors (invalid unicode scalar values).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, I don’t understand most of the text or its relevance here… the text basically says that invalid UTF-8 byte sequences will be decoded into U+FFFD replacement characters and that no error will be thrown in those cases, right?

How do UTF-16 and ASCII relate to that? What does “non-legal Unicode value” mean? (I would guess that this refers to characters that would be beyond U+10FFFF – if that’s correct, can you clarify that in the text?)


Expand Down