Content-Type: multipart/alternative; boundary="------------080502040203000002080609" --------------080502040203000002080609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have py2exe 0.6.9. I attached a simple script and a setup.py that shows the problem. Thanks! Rick Werner F. Bruhin wrote: > On 19/01/2010 12:51, Rick King wrote: > >> My program is unicode-aware and I'm opening files with codecs.open( >> self.file_name,'w','utf-8' ), for example. >> >> This doesn't work with the .exe created by py2exe because of a lookup >> error for the "unknown encoding: utf-8". >> >> How can I get this to work? >> >> I'm using python 2.6.4. >> > In the past encodings had to be included manually (with the package > option), but IIRC this has been fixed a long long time ago. > > What version of py2exe are you using, how does your setup.py look? > > Maybe you want to put a small script together which shows this problem > with the corresponding setup.py. > > Werner > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Py2exe-users mailing list > Py2exe-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > --------------080502040203000002080609 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I have py2exe 0.6.9.

I attached a simple script and a setup.py that shows the problem.

Thanks!

Rick

Werner F. Bruhin wrote:
On 19/01/2010 12:51, Rick King wrote:
  
My program is unicode-aware and I'm opening files with codecs.open(
self.file_name,'w','utf-8' ), for example.

This doesn't work with the .exe created by py2exe because of a lookup
error for the "unknown encoding: utf-8".

How can I get this to work?

I'm using python 2.6.4.
    
In the past encodings had to be included manually (with the package 
option), but IIRC this has been fixed a long long time ago.

What version of py2exe are you using, how does your setup.py look?

Maybe you want to put a small script together which shows this problem 
with the corresponding setup.py.

Werner


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users

  
--------------080502040203000002080609--