Steps to Reproduce:
print("こんにちは")
[1] "アノソヘ"
(If related)setting.json
// R.exe path for windows
"r.rterm.windows": "C:\\Program Files\\R\\R-3.4.4\\bin\\x64\\R.exe",
// R command line options (i.e: --vanilla)
"r.rterm.option": [],
// An optional encoding to pass to R when executing the file, i.e. 'source(FILE, encoding=ENCODING)'
"r.source.encoding": "UTF-8",
// Keeping focus when running
"r.source.focus": "editor",
@BambooGeneral Thank you for using, and sorry for my reply is late.
In my environment (Mac OS ) is work well.
I have a some cause of it.
run(ctrl + enter) is not work, but source(ctrl + shift + s) is workSo, could you try print("こんにちは") on .r source file and save it.
I believe this is https://github.com/Microsoft/vscode/issues/19837, an issue with the VSCode integrated terminal in Windows, and is not specific to R or Japanese characters. I have this problem too and haven't found a solution yet, but I will update if I do.
One Japanese write the guide to fix it, please check it
https://qiita.com/surei/items/e5e22c70dd79c5603678
Thank you very much. It worked well. However, I hope that permanent measures will be found.
Most helpful comment
One Japanese write the guide to fix it, please check it
https://qiita.com/surei/items/e5e22c70dd79c5603678