X-Received: by 10.224.36.66 with SMTP id s2mr19298700qad.6.1370454206684; Wed, 05 Jun 2013 10:43:26 -0700 (PDT) X-Received: by 10.49.105.229 with SMTP id gp5mr638936qeb.35.1370454206659; Wed, 05 Jun 2013 10:43:26 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ch1no1010191qab.0!news-out.google.com!10ni283qax.0!nntp.google.com!ch1no1010182qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 5 Jun 2013 10:43:26 -0700 (PDT) In-Reply-To: <51aed313$0$11118$c3e8da3@news.astraweb.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.103.41.173; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 NNTP-Posting-Host: 79.103.41.173 References: <2c425f2b-99de-4453-964e-c585f2043f71@googlegroups.com> <8c16324f-da12-44ff-bf2f-4ae56f9127c0@googlegroups.com> <51ac3bd6$0$11118$c3e8da3@news.astraweb.com> <51ad1cdd$0$11118$c3e8da3@news.astraweb.com> <306a22ea-fbf7-4097-af31-121a999957d6@googlegroups.com> <9c482ba0-23ac-4e66-a0e1-a18be9fd82d8@googlegroup> <06a19483-65df-4fcd-9430-b45a01c9dbab@googlegroups.com> <51aed313$0$11118$c3e8da3@news.astraweb.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4c19b71d-4de5-41ad-b6ae-fb133a6c331e@googlegroups.com> Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) From: =?ISO-8859-7?B?zenq/Ovh7/Igyu/98eHy?= Injection-Date: Wed, 05 Jun 2013 17:43:26 +0000 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:47120 =D4=E7 =D4=E5=F4=DC=F1=F4=E7, 5 =C9=EF=F5=ED=DF=EF=F5 2013 8:56:36 =F0.=EC.= UTC+3, =EF =F7=F1=DE=F3=F4=E7=F2 Steven D'Aprano =DD=E3=F1=E1=F8=E5: Somehow, I don't know how because I didn't see it happen, you have one or= =20 more files in that directory where the file name as bytes is invalid when= =20 decoded as UTF-8, but your system is set to use UTF-8. So to fix this you= =20 need to rename the file using some tool that doesn't care quite so much=20 about encodings. Use the bash command line to rename each file in turn=20 until the problem goes away.=20 But renaming ia hsell access like 'mv 'Euxi tou Ihsou.mp3' '=C5=F5=F7=DE = =F4=EF=F5 =C9=E7=F3=EF=F5.mp3' leade to that unknown encoding of this bytes= tream '\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3' But please tell me Steven what linux tool you think it can encode the weird= filename to proper '=C5=F5=F7=DE =F4=EF=F5 =C9=E7=F3=EF=F5.mp3' utf-8? or we cna write a script as i suggested to decode back the bytestream using= all sorts of available decode charsets boiling down to the original greek = letters.