Updates:
        Status: WorkingAsIntended

Comment #1 on issue 3275 by [email protected]: Can V8 Engine handle chinese?
http://code.google.com/p/v8/issues/detail?id=3275

Not sure what you mean by "handle chinese". What this shows is that It's not compatible with the encoding of your choise. You can't just expect any encoding to just magically work.

V8 stores strings in Latin1 or UTF16 natively, and can additionally export to and import from UTF8. You will have to accommodate to that, if you want it to work. Checkout the test cases in test/cctest/test-strings.cc if you want.

A short test in d8 shows that everything works as intended.

d8> var a = '你'+'好'
(d8):1: SyntaxError: Unexpected string
var a '你'+'好'
      ^^^
SyntaxError: Unexpected string

d8> var a = '你好'
undefined
d8> a
你好
d8> a.charCodeAt(0)
20320
d8> a.charCodeAt(1)
22909
d8> '\u4F60\u597D'
"你好"


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to