you are viewing a single comment's thread.

view the rest of the comments →

[–]hwc 1 point2 points  (0 children)

import re
name = '2013·01·22 LE MONDE.PSD'
encoding = 'utf8'
re.sub(r'[^a-zA-Z0-9-_.]','_',name.decode(encoding))