Changing filenames from Greeklish => Greek (subprocess complain)
Νικόλαος Κούρας
nikos.gr33k at gmail.com
Tue Jun 4 10:24:19 EDT 2013
Know i tries the decode thing the moment the string join.
for root, dirs, files in os.walk(path):
for fullpath in files:
fullpaths.add( os.path.join(root, fullpath).decode('latin-1') )
But the /www/data/apps folder have inside them both english & greek filenames
It's clear to me now that this is a matter of encoding-decoding issue.
But encode to what and decode to what other?
How can the script encode and decode properly when it has mix of both english and weird-greek endoing filanems inside its corresponding folder?
More information about the Python-list
mailing list