1
Vote

Add support for Unicode in marchaling

description

Please replace following function to support Unicode:
 
String^ V8ValueWrapper::WrapString(v8::Handle<v8::Value> value) {
    v8::String::Utf8Value utf8(value);
    return gcnew String((const char*)*utf8, 0, utf8.length(), System::Text::Encoding::UTF8);
}

comments

holyping wrote May 5, 2011 at 2:06 PM

Is these codes are better?
String^ V8ValueWrapper::WrapString(v8::Handle<v8::Value> value) {
    v8::String::Value ascii(value);
    return gcnew String((const wchar_t*)*ascii);
}

wrote Feb 14, 2013 at 1:47 AM