Greek characters in compiled executable

I have a script that contains the following instruction
print("\u03C0 ");
In the python IDLE the output is correct (greek character pi)
but when I run the compiled executable, the output is
p (not greek).

What is the “compiled executable”?

What happens when you run the script from the command line in the same shell, with python -X utf8 ? If you’re using cmd or have set the encoding or Windows code page to something that doesn’t support π as \u03C0 in the encoding Python used for the bytes it sent to stdout, then it may well not work.