Christopher Barker wrote: > I suppose what I would like is if I could change the default encoding > that str() uses -- or at least change it to "replace" or "ignore" mode.
You can, with sys.setdefaultencoding(). See here for discussion of how: http://blog.ianbicking.org/illusive-setdefaultencoding.html and here for arguments that this is a bad idea (mostly because it makes your code non-portable): http://faassen.n--tree.net/blog/view/weblog/2005/08/02/0 Kent _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig