I am trying to archive that a function is returning a unicode string and I want to log it into the console. But it just either displays the information about the function or just not a unicode string.
let test = () => "ÜTEST"
Js.log(test());
Js.log({j|$test()|j});
The first one just returns "ÃTEST"
and the second one just returns information about the function itself.
Here is a working example: https://reasonml.github.io/en/try?rrjsx=true&reason=FAGwpgLgBBYM7QLxQBQEoqIHxQEQB2AVAUQGVDdhgApOAOhAHsBzFWBdNAbitoZZQBvAFYAfACTsI6UcIC+3IA