I am trying to send a string containing non-ASCII characters from node to a C++ native module but I seem to be getting garbage instead of the special characters (regular ASCII ones are ok).
In JS I just call my function with this hardcoded string "/ÿaddoné/" but on the C++ side I get "/�addon�/".
I use the following to print the string
std::cout << std::string(*v8::String::Utf8Value(obj->Get(v8::String::NewFromUtf8(isolate, "data")))) << std::endl;
What am I doing wrong ? How can I fix this?