In the first place, you should avoid the use of Python 2.7 and the encoding header was removed. Using the encoding header in Python 3.x code is wrong and will be ignored by the interpreter. Python 3 source code is encoded by default utf8.
If the exception still occurs, the encoding is maybe broken. Use a better IDE/Editor.
PS: Often python is a symlink to python2.7 on old distributions. Use python3 explicit.
If the exception still occurs, the encoding is maybe broken. Use a better IDE/Editor.
PS: Often python is a symlink to python2.7 on old distributions. Use python3 explicit.
Statistics: Posted by DeaD_EyE — Mon Sep 30, 2024 9:38 am