Using pythonwin (i have version 3.6.8 pywin32 build224.0 from 2018) write:
print("Hello world, I make £10000 per month")
or what I originally tested
print("Hej världen")
which is Swedish (my language) for "hello world" (the £10000 is an example and not my salary)
Save as a file. Close and reopen it and run it. There is a fault message:
Failed to run script - syntax error (unicode error) 'utf-8' codec can't decode byte 0xa3 in position 22: invalid start byte (helloworld£10000.py)
It seems that the editor uses Latin-1 and the python interpreter uses utf-8.
Using notepad to save it as UTF-8 and reopen in pythonwin allows running but the source becomes: Hello world, I make £10000 per month
This has to be a frequent problem but I can't find a good way of handling it for pythonwin. Neither in help or on stackoverflow. I saw a discussion on the issue on unicode in pythonwin is from 2003 and I don't understand why this is a problem now.