I'm working on MacOS 12 and VS Code. When I select a file with a Japanese file name and output it to the console:
File.openDialog();
$.writeln(file.name);
the Japanese characters are lost and I get gibberish (a mix of number/characters/percentage symbols). I have added Japanese as a preferred language in Mac OS, switched to Japanese as keyboard output, changed the language of VS Code to Japanese, changed in the Settings of VS Code "Files:Encoding" from UTF-8 to Shift JIS, but nothing helped.
Could someone please help?
Thanks!