Try something like this:
filename=file.encode('utf-8')
email attachement with non-ascii characters will be renamed
|
|
Messages In This Thread |
email attachement with non-ascii characters will be renamed - by Erich1959 - Apr-06-2020, 09:13 PM
RE: email attachement with non-ascii characters will be renamed - by Mateusz - Apr-07-2020, 05:47 AM
RE: email attachement with non-ascii characters will be renamed - by Erich1959 - Apr-07-2020, 05:23 PM
RE: email attachement with non-ascii characters will be renamed - by Mateusz - Apr-07-2020, 06:20 PM
RE: email attachement with non-ascii characters will be renamed - by Erich1959 - Apr-07-2020, 06:57 PM
|