Hi Vincent,

ASCII is normally the default encoding on Python 2, and changing it is not
recommended. So you should look for what's changing it to UTF-8 when your
code is not frozen - that change is probably not taking effect in the
frozen state.

Thomas

On 12 December 2016 at 08:50, Vincent LE GOFF <vincent.legoff....@gmail.com>
wrote:

> Hello,
>
> I'm not sure I should ask my questions here, but I have an issue with
> cxFreeze and I can't figure the origin of the problem. Whenever I freeze
> a script with cxFreeze, the default encoding becomes 'ascii' instead of
> being 'utf-8'.  The script that I freeze is quite simple:
>
> import sys
> print sys.getdefaultencoding()
> If I run in directly using Python 2.7 (Windows 10), I get 'utf-8'.  But
> if I freeze it with cxFreeze, I get 'ascii'.  Is there something I
> should do?  The encoding reverted to ASCII creates trouble with
> str.encode and str.decode, without mentioning interacting with wxPython.
>
> Thanks so much for your help,
>
> Vincent
>
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to