It works fine in the WingIDE.
When I build it with py2app, though, I get a problem. If I use this:
self.myStyledTextCtrl.DisplayText(f.read())
the file is displayed up to the line that includes the accented character, then no more. If I use this:
defaultEncoding = wx.GetDefaultPyEncoding()
. . .
data = f.read()
self.WholeText.DisplayText(unicode(data, defaultEncoding))
the file doesn't display at all.
Because of the difference between standalone and in-the-IDE, I can't figure out where the problem lies. Any clues very welcome. (I'm getting very sick of unicode.)
Charles Hartman
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig