Currently, I am on MacOS 12 using VS Code. An issue arises when I choose a file with a Japanese filename and try to output it to the console:
File.openDialog();
$.writeln(file.name);
Unfortunately, when this happens, the Japanese characters disappear and are replaced by nonsensical symbols (a mix of numbers, characters, and percentage symbols). Despite my efforts to add Japanese as a preferred language in Mac OS, switch to Japanese as keyboard output, change the language of VS Code to Japanese, and modify the Settings in VS Code "Files:Encoding" from UTF-8 to Shift JIS, the problem persists.
Can anyone assist me in resolving this issue?
Thank you!