Rescript doesn't support Chinese?

I write res like this:
Js.Console.log(“我需要帮助”);
then I get js like this:
console.log("\xe6\x88\x91\xe9\x9c\x80\xe8\xa6\x81\xe5\xb8\xae\xe5\x8a\xa9");
When I run the code, I got garbled

The upcoming V10 release will fix this. For now resort to using backtick strings as they already support unicode.

4 Likes