Reply to Miki Tedeka on "encoding" issue

Hi,

In an another thread, Miki Tedeka wrote:

I've found one issue with python2.3 that if you have and "encoding" line
(see PEP 263 – Defining Python Source Code Encodings | peps.python.org) it won't work. To override
this just remove the "encoding" line (warning will not show if you give
py2exe -w switch)

I *strongly* do not recommand it:

1) It true, py2exe has some problems with this "encoding stuff".I'm pretty sure
Thomas is working hard on this.
2) Removing the encoding information is certainly not a solution. If it's there,
there is certainly a good reason.
3) Building an exe with the py2exe's -w flag. This is the worst solution. It hides the
problem, but it does not solve it. In other words, the DOS window/console is hidden,
it is not displaying the DeprecationWarning about non ASCII char. This warning is
still there, just indicating your code in not running safely.

Jean-Michel Fauth, Switzerland