Changing filenames from Greeklish => Greek (subprocess complain)
Νικόλαος Κούρας
nikos.gr33k at gmail.com
Thu Jun 6 02:38:37 EDT 2013
Yes this is a linxu issue although locale is se to utf-8
root at nikos [~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
root at nikos [~]#
Since 'locale' is set to 'utf-8' why when i:
'mv 'Euxi tou Ihsou.mp3' 'Ευχή του Ιησού.mp3'
lead to that unknown encoded bytestream '\305\365\367\336\\364\357\365\311\347\363\357\375.mp3'
which isn't by default an utf-8 bytestream as locale indicated and python expected?
how 'files.py' is supposed to read this file now using:
# Compute a set of current fullpaths
fullpaths = set()
path = "/home/nikos/public_html/data/apps/"
for root, dirs, files in os.walk(path):
for fullpath in files:
fullpaths.add( os.path.join(root, fullpath) )
????
More information about the Python-list
mailing list