Re: email and unicode

2010-04-18 Thread Steven D'Aprano
On Sun, 18 Apr 2010 03:02:23 -0700, janwillem wrote: > How can you get the unicode file name into the replace string of line 35 > of the snippet: > replace = ReplaceString % dict(content_type=ct, >filename=fn, >params=

email and unicode

2010-04-18 Thread janwillem
I have a script that extracts attachments from all emails in a mbox (largely based on http://code.activestate.com/recipes/302086-strip-attachments-from-an-email-message/; thanks ActiveState). It works fine until it encounters an attachment with a unicode file name (Ukrainian in my case). I cannot