When you use the word "hosed" to mean broken, you're probably Canadian.
— Wayne Beaton (@waynebeaton) July 25, 2016
With J2V8 4 this has been fixed. All strings are now referenced as uint16_t in C++. Using the JNI API we were able to get the 2 byte string using:
const uint16_t* unicodeString = env->GetStringChars(string, NULL);and create the V8 String object using String::NewFromTwoByte().
For more J2V8 Tips and Tricks, follow me on Twitter.