[Python, VS Code, encoding] Non-English characters aren't shown correctly in TD when using VS Code as text editor

VS Code 1.41.1
TD 099 2019.33840
Windows Pro 10.0.18363

  1. Create a Text DAT, and press CTRL+E to open it in VS Code.
  2. Add the following code:
print("æøå")
  1. When hitting CTRL+S in VS Code, this is what TouchDesigner shows:
    image

I can fix it by changing the encoding in VS Code to “Western (Windows 1252)”, but I don’t want to do that every time.

Characters are shown correctly if I edit directly in the Text DAT, but I would prefer to use VS Code.

This is working in my Visual Studio setup, you can change the default for python files (.py files) to be UTF-8.