v8/include
dcarney@chromium.org f93f8ded96 String:WriteUtf8: Add REPLACE_INVALID_UTF8 option
This patch makes String::WriteUtf8 replace invalid code points (i.e. unmatched
surrogates) with the unicode replacement character when REPLACE_INVALID_UTF8 is
set.  This is done to avoid creating invalid UTF-8 output which can lead to
compatibility issues with software requiring valid UTF-8 inputs (e.g. the
WebSocket protocol requires valid UTF-8 and terminates connections when invalid
UTF-8 is encountered).

R=dcarney@chromium.org

BUG=

Review URL: https://codereview.chromium.org/121173009

Patch from Felix Geisendörfer <haimuiba@gmail.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18683 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-01-20 09:52:54 +00:00
..
v8-debug.h Remove default isolate usage from almost all tests 2013-09-19 07:33:45 +00:00
v8-platform.h Reland r17877 - Introduce a v8::Platform class that bundles embedder callbacks 2013-11-21 14:07:06 +00:00
v8-profiler.h Delete v8::HeapGraphNode::GetHeapValue 2013-12-23 09:33:16 +00:00
v8-testing.h Re-land "Add methods to enable configuration of ResourceConstraints based on limits derived at runtime." 2013-09-27 10:53:07 +00:00
v8.h String:WriteUtf8: Add REPLACE_INVALID_UTF8 option 2014-01-20 09:52:54 +00:00
v8config.h Add support for the QNX operating system. 2014-01-02 07:04:05 +00:00
v8stdint.h Move OS/compiler/feature detection to public v8config.h header. 2013-08-23 07:32:25 +00:00