mirror of https://github.com/lukechilds/node.git
Browse Source
Previously v8's WriteUtf8 function would produce invalid utf-8 output when encountering unmatched surrogate code units [1]. The new REPLACE_INVALID_UTF8 option fixes that by replacing invalid code points with the unicode replacement character. [1]: JS Strings are defined as arrays of 16 bit unsigned integers. There is no unicode enforcement, so one can easily end up with invalid unicode code unit sequences inside a string.v0.10.29-release
Felix Geisendörfer
11 years ago
committed by
Timothy J Fontaine
4 changed files with 22 additions and 1 deletions
Loading…
Reference in new issue