Thomas,
thank you for your answer.
That's what I thought too, that ASCII was the default encoding in Python
2.X. Perhaps it's one of the site-packages modules that change that
without my knowing, and since it's not frozen... but if so, it's loaded
automatically. That's a bit disturbing, to say the least. utf-8 is a
good default choice, but I'd like the encoding to be consistent between
non-frozen / frozen scripts... it really gives me some trouble with
accentuation in non-English languages.
Thank you again,
Vincent
On 12/12/2016 12:27 PM, Thomas Kluyver wrote:
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 <mailto: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
<mailto:cx-freeze-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
<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
------------------------------------------------------------------------------
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