[Pythonmac-SIG] py2app, unicode, etc

Charles Hartman charles.hartman at conncoll.edu
Thu Apr 28 15:57:46 CEST 2005


I'm using Python 2.4.1 with wxPython 2.5.4.1 Unicode build. While 
tracking down messy little problems with string-vs-unicode stuff, I put 
some code like this in my app:
		defEng = wx.GetDefaultPyEncoding()
		print 'default encoding is %s' % defEng
If I run this from within the WingIDE debugger, I get
		default encoding is mac-roman
If I run it from the command line, I get
		default encoding is mac-roman
If I use py2app to build a standalone, I get
		default encoding is utf-8

How come?

Charles Hartman



More information about the Pythonmac-SIG mailing list