On Tue, 11 Jun 2002, Martin Katz wrote: > Actually, you should use > > print list[1].encode('latin1', 'ignore') > > This will eliminate the exception when a character has no latin1 > equivalent. This is simpler than the other alternatives.
But it's only acceptable if (a) you know it won't lose information or (b) you don't care if you lose information. Can't afford that approach on my projects. -- Bob Kline mailto:[EMAIL PROTECTED] http://www.rksystems.com _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython