Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46667 > unrolled thread

Changing filenames from Greeklish => Greek (subprocess complain)

Started byΝικόλαος Κούρας <nikos.gr33k@gmail.com>
First post2013-06-01 08:44 -0700
Last post2013-06-02 11:22 +0100
Articles 20 on this page of 154 — 24 participants

Back to article view | Back to comp.lang.python


Contents

  Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 08:44 -0700
    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 23:02 -0700
    Re: Changing filenames from Greeklish => Greek (subprocess complain) Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-02 07:01 +0000
      Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-02 08:22 +0100
      Re: Changing filenames from Greeklish => Greek (subprocess complain) David <bouncingcats@gmail.com> - 2013-06-02 18:11 +1000
      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 07:35 -0700
        Re: Changing filenames from Greeklish => Greek (subprocess complain) Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-02 14:36 +0000
          Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-02 15:51 +0100
            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 08:04 -0700
              Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 01:15 +1000
                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 08:23 -0700
                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-02 15:47 -0400
              Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-02 16:24 +0100
                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 08:36 -0700
                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-02 16:55 +0100
                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 09:21 -0700
                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 02:31 +1000
                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 09:44 -0700
                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 03:05 +1000
                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 10:12 -0700
                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Michael Torrie <torriem@gmail.com> - 2013-06-02 11:21 -0600
                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 03:21 +1000
                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 11:34 -0700
                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Michael Torrie <torriem@gmail.com> - 2013-06-02 23:40 -0600
                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Tim Delaney <timothy.c.delaney@gmail.com> - 2013-06-03 09:10 +1000
                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Tim Delaney <timothy.c.delaney@gmail.com> - 2013-06-03 09:13 +1000
                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 15:02 +1000
                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 22:05 -0700
                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 22:22 -0700
                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 22:31 -0700
                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Michael Torrie <torriem@gmail.com> - 2013-06-02 23:45 -0600
                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 23:11 -0700
                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-03 10:00 +0100
                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 19:05 +1000
                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-03 02:32 -0700
                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-03 23:04 +0000
                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-03 06:46 +0000
                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 17:36 +1000
                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-03 02:12 -0700
                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) rusi <rustompmody@gmail.com> - 2013-06-03 05:54 -0700
                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) nagia.retsina@gmail.com - 2013-06-03 06:48 -0700
                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-03 22:37 +0000
                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) rusi <rustompmody@gmail.com> - 2013-06-03 21:35 -0700
                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-04 05:48 +0000
                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-03 23:43 -0700
                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-03 22:46 +0000
                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) nagia.retsina@gmail.com - 2013-06-03 23:28 -0700
                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-04 17:35 +1000
                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 01:05 -0700
                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Nobody <nobody@nowhere.com> - 2013-06-04 08:39 +0100
                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 00:58 -0700
                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Nobody <nobody@nowhere.com> - 2013-06-04 14:01 +0100
                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 06:37 -0700
                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 06:49 -0700
                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 06:57 -0700
                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-04 15:09 +0100
                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 07:18 -0700
                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 07:24 -0700
                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Michael Torrie <torriem@gmail.com> - 2013-06-04 09:07 -0600
                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 09:57 -0700
                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 10:23 -0700
                                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-06-04 19:53 +0200
                                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 11:27 -0700
                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-06-04 20:45 +0200
                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 11:51 -0700
                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 12:32 -0700
                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 13:03 -0700
                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-05 07:47 +1000
                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 20:44 -0700
                                                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 21:05 -0700
                                                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 21:15 -0700
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Michael Torrie <torriem@gmail.com> - 2013-06-04 23:40 -0600
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 23:05 -0700
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-05 06:03 +0000
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 23:40 -0700
                                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 04:08 -0700
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) MRAB <python@mrabarnett.plus.com> - 2013-06-05 17:44 +0100
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 10:34 -0700
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Heiko Wundram <modelnine@modelnine.org> - 2013-06-06 10:50 +0200
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 03:35 -0700
                                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Heiko Wundram <modelnine@modelnine.org> - 2013-06-06 12:44 +0200
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 04:00 -0700
                                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Heiko Wundram <modelnine@modelnine.org> - 2013-06-06 13:09 +0200
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 04:24 -0700
                                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Heiko Wundram <modelnine@modelnine.org> - 2013-06-06 13:31 +0200
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 04:31 -0700
                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Fábio Santos <fabiosantosart@gmail.com> - 2013-06-04 21:26 +0100
                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) alex23 <wuwei23@gmail.com> - 2013-06-04 18:28 -0700
                                                                      RE: Changing filenames from Greeklish => Greek (subprocess complain) Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-05 06:04 +0300
                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 20:28 -0700
                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-05 13:32 +1000
                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) alex23 <wuwei23@gmail.com> - 2013-06-04 21:47 -0700
                                                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 22:06 -0700
                                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-05 05:56 +0000
                                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 10:43 -0700
                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) MRAB <python@mrabarnett.plus.com> - 2013-06-05 19:32 +0100
                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 11:43 -0700
                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 20:43 -0700
                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 21:42 -0700
                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) MRAB <python@mrabarnett.plus.com> - 2013-06-06 12:35 +0100
                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 05:04 -0700
                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) MRAB <python@mrabarnett.plus.com> - 2013-06-06 13:50 +0100
                                                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 11:13 -0700
                                                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-06 21:03 +0200
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 12:17 -0700
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-06 22:25 +0200
                                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 13:39 -0700
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 13:56 -0700
                                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 13:59 -0700
                                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-06 23:15 +0200
                                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-07 01:29 +0000
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-06 23:07 +0200
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) MRAB <python@mrabarnett.plus.com> - 2013-06-06 22:57 +0100
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-07 01:25 +0000
                                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) nagia.retsina@gmail.com - 2013-06-06 23:35 -0700
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-07 16:46 +1000
                                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-07 00:08 -0700
                                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-07 17:24 +1000
                                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Roel Schroeven <roel@roelschroeven.net> - 2013-06-08 11:19 +0200
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-07 09:09 +0200
                                                                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-07 00:32 -0700
                                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Michael Weylandt <michael.weylandt@gmail.com> - 2013-06-07 08:42 +0100
                                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-07 11:10 +0300
                                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) "R. Michael Weylandt" <michael.weylandt@gmail.com> - 2013-06-07 09:52 +0100
                                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-08 07:57 +0000
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) rusi <rustompmody@gmail.com> - 2013-06-06 20:13 -0700
                                                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) MRAB <python@mrabarnett.plus.com> - 2013-06-06 20:42 +0100
                                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 13:05 -0700
                                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 13:21 -0700
                                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Cameron Simpson <cs@zip.com.au> - 2013-06-07 09:08 +1000
                                                                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Cameron Simpson <cs@zip.com.au> - 2013-06-06 20:24 +1000
                                                                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 04:16 -0700
                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) jmfauth <wxjmfauth@gmail.com> - 2013-06-05 22:54 -0700
                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-06 16:11 +1000
                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 23:38 -0700
                                                                Re: Changing filenames from Greeklish => Greek (subprocess complain) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-06 09:53 +0100
                                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-04 20:18 +0200
                                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 11:33 -0700
                                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Lele Gaifax <lele@metapensiero.it> - 2013-06-04 21:31 +0200
                                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 20:40 -0700
                                      Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-04 08:47 +0000
                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 02:00 -0700
                                          Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-06 12:44 +0000
                                            Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-06 11:46 -0700
                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Cameron Simpson <cs@zip.com.au> - 2013-06-07 11:01 +1000
                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-07 02:13 +0000
                                              Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-07 09:56 +0300
                                        Re: Changing filenames from Greeklish => Greek (subprocess complain) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-05 06:06 +0000
              RE: Changing filenames from Greeklish => Greek (subprocess complain) Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-02 22:44 +0300
                Re: Changing filenames from Greeklish => Greek (subprocess complain) nagia.retsina@gmail.com - 2013-06-02 12:51 -0700
                  Re: Changing filenames from Greeklish => Greek (subprocess complain) Chris Angelico <rosuav@gmail.com> - 2013-06-03 06:46 +1000
                    Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 21:59 -0700
          Re: Changing filenames from Greeklish => Greek (subprocess complain) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-02 08:02 -0700
    Re: Changing filenames from Greeklish => Greek (subprocess complain) Nobody <nobody@nowhere.com> - 2013-06-02 11:22 +0100

Page 5 of 8 — ← Prev page 1 2 3 4 [5] 6 7 8  Next page →


#47206

FromHeiko Wundram <modelnine@modelnine.org>
Date2013-06-06 12:44 +0200
Message-ID<mailman.2794.1370515502.3114.python-list@python.org>
In reply to#47205
Am 06.06.2013 12:35, schrieb Νικόλαος Κούρας:
> nikos@superhost.gr [~/www/data/apps]# ls -l | file -
> /dev/stdin: ASCII text

Did you actually try to understand what I wrote?

-- 
--- Heiko.

[toc] | [prev] | [next] | [standalone]


#47209

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-06 04:00 -0700
Message-ID<33c221c8-5dd5-45af-ab11-104243cd7133@googlegroups.com>
In reply to#47198
Heiko, the ssh client i used to 'mv' the .mp3 was putty.Do you mean that putty is responsible for the encoding mess?


the rename command on the command-line of his shell session, the "mv" 
command gets a stream of bytes as the new file name which happens to be 
the ISO-8859-7 encoding of the file name he'd like the file to have. 
This is what's stored on disk. 




So, his biggest problem isn't that the operating system is encoding 
agnostic wrt. filenames (i.e., treats them as a stream of bytes), but 
rather that he's using an ISO-7 terminal window when having set up UTF-8 
as his operating system locale and expects filenames to be encoded in 
UTF-8 when he's not passing in UTF-8 byte streams from his client 
computer at all. 

the rename command on the command-line of his shell session, the "mv" 
command gets a stream of bytes as the new file name which happens to be 
the ISO-8859-7 encoding of the file name he'd like the file to have. 
This is what's stored on disk. 




So, his biggest problem isn't that the operating system is encoding 
agnostic wrt. filenames (i.e., treats them as a stream of bytes), but 
rather that he's using an ISO-7 terminal window when having set up UTF-8 
as his operating system locale and expects filenames to be encoded in 
UTF-8 when he's not passing in UTF-8 byte streams from his client 

the rename command on the command-line of his shell session, the "mv" 
command gets a stream of bytes as the new file name which happens to be 
the ISO-8859-7 encoding of the file name he'd like the file to have. 
This is what's stored on disk. 




So, his biggest problem isn't that the operating system is encoding 
agnostic wrt. filenames (i.e., treats them as a stream of bytes), but 
rather that he's using an ISO-7 terminal window when having set up UTF-8 
as his operating system locale and expects filenames to be encoded in 
UTF-8 when he's not passing in UTF-8 byte streams from his client 
computer at all. 

the rename command on the command-line of his shell session, the "mv" 
command gets a stream of bytes as the new file name which happens to be 
the ISO-8859-7 encoding of the file name he'd like the file to have. 
This is what's stored on disk. 




So, his biggest problem isn't that the operating system is encoding 
agnostic wrt. filenames (i.e., treats them as a stream of bytes), but 
rather that he's using an ISO-7 terminal window when having set up UTF-8 
as his operating system locale and expects filenames to be encoded in 
UTF-8 when he's not passing in UTF-8 byte streams from his client 
computer at all. 

the rename command on the command-line of his shell session, the "mv" 
command gets a stream of bytes as the new file name which happens to be 
the ISO-8859-7 encoding of the file name he'd like the file to have. 
This is what's stored on disk. 




So, his biggest problem isn't that the operating system is encoding 
agnostic wrt. filenames (i.e., treats them as a stream of bytes), but 
rather that he's using an ISO-7 terminal window when having set up UTF-8 
as his operating system locale and expects filenames to be encoded in 
UTF-8 when he's not passing in UTF-8 byte streams from his client 
computer at all. 

[toc] | [prev] | [next] | [standalone]


#47211

FromHeiko Wundram <modelnine@modelnine.org>
Date2013-06-06 13:09 +0200
Message-ID<mailman.2795.1370516969.3114.python-list@python.org>
In reply to#47209
Am 06.06.2013 13:00, schrieb Νικόλαος Κούρας:
> Heiko, the ssh client i used to 'mv' the .mp3 was putty.Do you mean that putty is responsible for the encoding mess?

Exactly. Check the encoding that putty uses for the terminal session. If 
it doesn't use UTF-8, switch your terminal session to UTF-8 and try the 
rename again. If it does, try to use another terminal client (I 
recommend the Cygwin-Suite).

-- 
--- Heiko.

[toc] | [prev] | [next] | [standalone]


#47215

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-06 04:24 -0700
Message-ID<8faa38c2-36ad-4ea4-9624-79a9772a486a@googlegroups.com>
In reply to#47211
Τη Πέμπτη, 6 Ιουνίου 2013 2:09:22 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε:
> Am 06.06.2013 13:00, schrieb Νικόλαος Κούρας:
> 
> > Heiko, the ssh client i used to 'mv' the .mp3 was putty.Do you mean that putty is responsible for the encoding mess?
> 
> 
> 
> Exactly. Check the encoding that putty uses for the terminal session. If 
> 
> it doesn't use UTF-8, switch your terminal session to UTF-8 and try the 
> 
> rename again. If it does, try to use another terminal client (I 
> 
> recommend the Cygwin-Suite).

Okey, indeed it was using greek-sio encoding, i changed it to uf-8 and reopned the terminal session.

nikos@superhost.gr [~/www/data/apps]# mv *.mp3 'Ευχή του Ιησού.mp3'
mv: `\305\365\367\336 \364\357\365 \311\347\363\357\375.mp3' and `\305\365\367\3                                                                                        36 \364\357\365 \311\347\363\357\375.mp3' are the same file
nikos@superhost.gr [~/www/data/apps]# mv *.mp3 'Ευχή του Ιησού.mp33'
nikos@superhost.gr [~/www/data/apps]# mv *.mp33 'Ευχή του Ιησού.mp3'
nikos@superhost.gr [~/www/data/apps]# ls -l
total 368548
drwxr-xr-x 2 nikos nikos     4096 Jun  6 14:22 ./
drwxr-xr-x 6 nikos nikos     4096 May 26 21:13 ../
-rwxr-xr-x 1 nikos nikos 13157283 Mar 17 12:57 100\ Mythoi\ tou\ Aiswpou.pdf*
-rwxr-xr-x 1 nikos nikos 29524686 Mar 11 18:17 Anekdotologio.exe*
-rw-r--r-- 1 nikos nikos 42413964 Jun  2 20:29 Battleship.exe
-rw-r--r-- 1 nikos nikos   236032 Jun  4 14:10 \323\352\335\370\357\365\ \335\35                                                                                        5\341\355\ \341\361\351\350\354\374.exe
-rwxr-xr-x 1 nikos nikos 66896732 Mar 17 13:13 Kosmas\ o\ Aitwlos\ -\ Profiteies                                                                                        .pdf*
-rw-r--r-- 1 nikos nikos 51819750 Jun  2 20:04 Luxor\ Evolved.exe
-rw-r--r-- 1 nikos nikos 60571648 Jun  2 14:59 Monopoly.exe
-rw-r--r-- 1 nikos nikos  3511233 Jun  4 14:11 \305\365\367\336\ \364\357\365\ \                                                                                        311\347\363\357\375.mp3
-rwxr-xr-x 1 nikos nikos  1788164 Mar 14 11:31 Online\ Movie\ Player.zip*
-rw-r--r-- 1 nikos nikos  5277287 Jun  1 18:35 O\ Nomos\ tou\ Merfy\ v1-2-3.zip
-rwxr-xr-x 1 nikos nikos 16383001 Jun 22  2010 Orthodoxo\ Imerologio.exe*
-rw-r--r-- 1 nikos nikos  6084806 Jun  1 18:22 Pac-Man.exe
-rw-r--r-- 1 nikos nikos 25476584 Jun  2 19:50 Scrabble.exe
-rwxr-xr-x 1 nikos nikos 49141166 Mar 17 12:48 To\ 1o\ mou\ vivlio\ gia\ to\ ska                                                                                        ki.pdf*
-rwxr-xr-x 1 nikos nikos  3298310 Mar 17 12:45 Vivlos\ gia\ Atheofovous.pdf*
-rw-r--r-- 1 nikos nikos  1764864 May 29 21:50 V-Radio\ v2.4.msi
nikos@superhost.gr [~/www/data/apps]# ls *.mp3 | file -
/dev/stdin: ASCII text
nikos@superhost.gr [~/www/data/apps]#

still same error.

[toc] | [prev] | [next] | [standalone]


#47217

FromHeiko Wundram <modelnine@modelnine.org>
Date2013-06-06 13:31 +0200
Message-ID<mailman.2798.1370518319.3114.python-list@python.org>
In reply to#47215
Am 06.06.2013 13:24, schrieb Νικόλαος Κούρας:
> nikos@superhost.gr [~/www/data/apps]# ls *.mp3 | file -
> /dev/stdin: ASCII text

Again, did you actually read (and try to understand) what I wrote? I 
said to redo the rename after you change your terminal session to UTF-8.

-- 
--- Heiko.

[toc] | [prev] | [next] | [standalone]


#47216

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-06 04:31 -0700
Message-ID<90d37510-1b35-4d0b-b0d5-eb4345f2ef90@googlegroups.com>
In reply to#47211
# Compute a set of current fullpaths
fullpaths = os.listdir( '/home/nikos/public_html/data/apps/' )

# Load'em
for fullpath in fullpaths:
	try: 
		# Check the presence of a file against the database and insert if it doesn't exist
		cur.execute('''SELECT url FROM files WHERE url = %s''', fullpath.encode('utf-8') )
		data = cur.fetchone()        #URL is unique, so should only be one
		
		print( fullpath.encode('utf-8') )


Now why this does not print out the filenames when iterated in the for loop?
One step forward is that when i run it liek this no error is being displyed in the error log.

Please help, i ahve tried os.listdir() as Cameron suggested.

[toc] | [prev] | [next] | [standalone]


#46967

FromFábio Santos <fabiosantosart@gmail.com>
Date2013-06-04 21:26 +0100
Message-ID<mailman.2680.1370377590.3114.python-list@python.org>
In reply to#46960

[Multipart message — attachments visible in raw view] — view raw

On 4 Jun 2013 21:18, "Νικόλαος Κούρας" <nikos.gr33k@gmail.com> wrote:
>
> Lele the output of:
>
> stmt = "cur.execute('''SELECT url FROM files WHERE url = %s''', (
fullpath, )"
> chars_count = Counter(stmt)
> print("Number of '(': %d" % chars_count['('])
> print("Number of ')': %d" % chars_count[')'])
>
> is:
>
> Number of '(': 2 Number of ')': 1
>
> What do you make out of this please?

He couldn't have been more obvious. You are missing a closing parenthesis.

http://xkcd.com/859/

[toc] | [prev] | [next] | [standalone]


#46992

Fromalex23 <wuwei23@gmail.com>
Date2013-06-04 18:28 -0700
Message-ID<03f34979-e13b-4fa5-bf43-57a512f19474@ow4g2000pbc.googlegroups.com>
In reply to#46960
On Jun 5, 5:32 am, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
> Lele the output of:
>
> stmt = "cur.execute('''SELECT url FROM files WHERE url = %s''', ( fullpath, )"
> chars_count = Counter(stmt)
> print("Number of '(': %d" % chars_count['('])
> print("Number of ')': %d" % chars_count[')'])
>
> is:
>
> Number of '(': 2 Number of ')': 1
>
> What do you make out of this please?

Just a reminder to everyone that the OP originally went by the name of
Ferrous Cranus:
http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm

He's told there's a missing parenthesis, he dismisses the claim. He's
given code that demonstrates the missing parenthesis, and he acts
confused. The list is rapidly becoming his support group for _his
business_, and the bulk of it has very little to do with Python
itself.

I've been struggling for a month to get an inheritance chain working
with fresnel lenses, should I be posting every single bug I hit here
every 10 minutes then bump them 10 minutes later when no one responds?
Is that what the list is for now? We don't do people's home work for
them, so why are we doing his _work_ for him?

[toc] | [prev] | [next] | [standalone]


#46995

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-06-05 06:04 +0300
Message-ID<mailman.2699.1370401473.3114.python-list@python.org>
In reply to#46992

[Multipart message — attachments visible in raw view] — view raw

> Date: Tue, 4 Jun 2013 18:28:17 -0700
> Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain)
> From: wuwei23@gmail.com
[...]
> Just a reminder to everyone that the OP originally went by the name of
> Ferrous Cranus:
> http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm
> 
> He's told there's a missing parenthesis, he dismisses the claim. He's
> given code that demonstrates the missing parenthesis, and he acts
> confused. The list is rapidly becoming his support group for _his
> business_, and the bulk of it has very little to do with Python
> itself.
> 
> I've been struggling for a month to get an inheritance chain working
> with fresnel lenses, should I be posting every single bug I hit here
> every 10 minutes then bump them 10 minutes later when no one responds?
> Is that what the list is for now? We don't do people's home work for
> them, so why are we doing his _work_ for him?

I've had once this naive expectation that his obduracy would end! lol


 		 	   		  

[toc] | [prev] | [next] | [standalone]


#46997

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 20:28 -0700
Message-ID<1bc6536b-9129-4f48-9aed-bce28b3178c6@googlegroups.com>
In reply to#46992
Τη Τετάρτη, 5 Ιουνίου 2013 4:28:17 π.μ. UTC+3, ο χρήστης alex23 έγραψε:
> On Jun 5, 5:32 am, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
> 
> > Lele the output of:
> 
> >
> 
> > stmt = "cur.execute('''SELECT url FROM files WHERE url = %s''', ( fullpath, )"
> 
> > chars_count = Counter(stmt)
> 
> > print("Number of '(': %d" % chars_count['('])
> 
> > print("Number of ')': %d" % chars_count[')'])
> 
> >
> 
> > is:
> 
> >
> 
> > Number of '(': 2 Number of ')': 1
> 
> >
> 
> > What do you make out of this please?
> 
> 
> 
> Just a reminder to everyone that the OP originally went by the name of
> 
> Ferrous Cranus:
> 
> http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm
> 
> 
> 
> He's told there's a missing parenthesis, he dismisses the claim. He's
> 
> given code that demonstrates the missing parenthesis, and he acts
> 
> confused. The list is rapidly becoming his support group for _his
> 
> business_, and the bulk of it has very little to do with Python
> 
> itself.
> 
> 
> 
> I've been struggling for a month to get an inheritance chain working
> 
> with fresnel lenses, should I be posting every single bug I hit here
> 
> every 10 minutes then bump them 10 minutes later when no one responds?
> 
> Is that what the list is for now? We don't do people's home work for
> 
> them, so why are we doing his _work_ for him?

AS you have seen i've been struggling days now to get a solution to this and the closing parenthesis is not the prbpoem here, unicode.

YOU of all people should not speak at all, because you haven't helped me a bit.
Its funny, how knowledge people that in facte tried to help me treat me with respect while people like you who have never been of any help tend to just bitch all the way along.

[toc] | [prev] | [next] | [standalone]


#47001

FromChris Angelico <rosuav@gmail.com>
Date2013-06-05 13:32 +1000
Message-ID<mailman.2700.1370403163.3114.python-list@python.org>
In reply to#46997
On Wed, Jun 5, 2013 at 1:28 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>
> YOU of all people should not speak at all, because you haven't helped me a bit.
> Its funny, how knowledge people that in facte tried to help me treat me with respect while people like you who have never been of any help tend to just bitch all the way along.


You sure don't know respect when you don't see it.

ChrisA

[toc] | [prev] | [next] | [standalone]


#47009

Fromalex23 <wuwei23@gmail.com>
Date2013-06-04 21:47 -0700
Message-ID<95105b3f-9b01-4bba-bceb-7da7444d1b00@g5g2000pbp.googlegroups.com>
In reply to#46997
On Jun 5, 1:28 pm, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
> AS you have seen i've been struggling days now to get a solution to this and the closing parenthesis is not the prbpoem here, unicode.

Oh really?

> if they are unicode then i really see no trouble when trying to:
> cur.execute('''SELECT url FROM files WHERE url = %s''', ( fullpath, )
> but [t]his is what i'm still getting:
> [Tue Jun 04 19:50:16 2013] [error] [client 46.12.95.59]     data = cur.fetchone()        #URL is unique, so should only be one
> [Tue Jun 04 19:50:16 2013] [error] [client 46.12.95.59]        ^
> [Tue Jun 04 19:50:16 2013] [error] [client 46.12.95.59] SyntaxError: invalid syntax

Unicode is not producing the SyntaxError you're seeing here.

> YOU of all people should not speak at all, because you haven't helped me a bit.

Yeah, advising you _not_ to do this crap on a production machine was
clearly lost on you. That's not my failing, though, it's your's.

> Its funny, how knowledge people that in facte tried to help me treat me with respect while people like you who have never been of any help tend to just bitch all the way along.

1) For many of us, this is our _profession_ and you're asking us to
provide you with _free_ support while doing SFA to resolve your
inadequate understanding.
2) If it names itself after a troll, and it trolls like a troll,
there's a pretty good chance it's a troll.
3) Your whining and begging is treating _us_ with no respect, so I
guess we're all even.

Your whole approach is one of cargo cult programming and it's tedious.
Sysadmin, educate thyself!

[toc] | [prev] | [next] | [standalone]


#47013

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 22:06 -0700
Message-ID<69ac913c-163f-4f15-aec6-0811f2086773@googlegroups.com>
In reply to#47009
Τη Τετάρτη, 5 Ιουνίου 2013 7:47:40 π.μ. UTC+3, ο χρήστης alex23 έγραψε:
> On Jun 5, 1:28 pm, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
> 
> > AS you have seen i've been struggling days now to get a solution to this and the closing parenthesis is not the prbpoem here, unicode.
> 
> 
> 
> Oh really?
> 
> 
> 
> > if they are unicode then i really see no trouble when trying to:
> 
> > cur.execute('''SELECT url FROM files WHERE url = %s''', ( fullpath, )
> 
> > but [t]his is what i'm still getting:
> 
> > [Tue Jun 04 19:50:16 2013] [error] [client 46.12.95.59]     data = cur.fetchone()        #URL is unique, so should only be one
> 
> > [Tue Jun 04 19:50:16 2013] [error] [client 46.12.95.59]        ^
> 
> > [Tue Jun 04 19:50:16 2013] [error] [client 46.12.95.59] SyntaxError: invalid syntax
> 
> 
> 
> Unicode is not producing the SyntaxError you're seeing here.
> 
> 
> 
> > YOU of all people should not speak at all, because you haven't helped me a bit.
> 
> 
> 
> Yeah, advising you _not_ to do this crap on a production machine was
> 
> clearly lost on you. That's not my failing, though, it's your's.
> 
> 
> 
> > Its funny, how knowledge people that in facte tried to help me treat me with respect while people like you who have never been of any help tend to just bitch all the way along.
> 
> 
> 
> 1) For many of us, this is our _profession_ and you're asking us to
> 
> provide you with _free_ support while doing SFA to resolve your
> 
> inadequate understanding.
> 
> 2) If it names itself after a troll, and it trolls like a troll,
> 
> there's a pretty good chance it's a troll.
> 
> 3) Your whining and begging is treating _us_ with no respect, so I
> 
> guess we're all even.
> 
> 
> 
> Your whole approach is one of cargo cult programming and it's tedious.
> 
> Sysadmin, educate thyself!

Keep bithching professional pythoneer, you are doing great. 
I'm too tired to even reply to your rumblings.

[toc] | [prev] | [next] | [standalone]


#47021

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-06-05 05:56 +0000
Message-ID<51aed313$0$11118$c3e8da3@news.astraweb.com>
In reply to#46944
On Tue, 04 Jun 2013 10:23:33 -0700, Νικόλαος Κούρας wrote:

> What on eart is this damn error: Michael tried to explain to me about
> surrogates but dont think i understand it.
> 
> Encoding giving me trouble years now.
> 
> [Tue Jun 04 20:19:53 2013] [error] [client 46.12.95.59] Original
> exception was: [Tue Jun 04 20:19:53 2013] [error] [client 46.12.95.59]
> Traceback (most recent call last): [Tue Jun 04 20:19:53 2013] [error]
> [client 46.12.95.59]   File "files.py", line 72, in <module> [Tue Jun 04
> 20:19:53 2013] [error] [client 46.12.95.59]     cur.execute('''SELECT
> url FROM files WHERE url = %s''', (fullpath,) ) [Tue Jun 04 20:19:53
> 2013] [error] [client 46.12.95.59]   File
> "/usr/local/lib/python3.3/site-packages/PyMySQL3-0.5-py3.3.egg/pymysql/
cursors.py",
> line 108, in execute [Tue Jun 04 20:19:53 2013] [error] [client
> 46.12.95.59]     query = query.encode(charset) [Tue Jun 04 20:19:53
> 2013] [error] [client 46.12.95.59] UnicodeEncodeError: 'utf-8' codec
> can't encode character '\\udcd3' in position 61: surrogates not allowed
> 
> 
> 
> PLEASE TELL EM WHAT TO TRY, PLEASE FOR THE LOVE OF GOD, IAM SO
> FRUSTRATED NOT BEING ABLE TO DEAL WITH THIS.

Calm down. I know it is frustrating.

On a Linux system, the file system stores bytes, and only bytes. The file 
system does no validation of the bytes you give, except to check that 
there are no 0x00 and 0x2f bytes (ASCII '\0' and '/') in the file name. 
That's all.

So, if one program thinks that it should be sending file names in, say, 
UTF-16 or or ISO-8859-7 encoding, it will take a string like "Νικόλαος" 
and the file system will see bytes like these:

py> s = 'Νικόλαος'
py> s.encode('UTF-16be')
b'\x03\x9d\x03\xb9\x03\xba\x03\xcc\x03\xbb\x03\xb1\x03\xbf\x03\xc2'

py> s.encode('iso-8859-7')
b'\xcd\xe9\xea\xfc\xeb\xe1\xef\xf2'


Notice that the same string gives you completely different bytes. And 
likewise, the same bytes will give you different strings, depending on 
the encoding you use.


Now, if you try to read the file name using a program that expects UTF-8, 
it will either see some sort of mojibake garbage characters, or get some 
sort of error:

py> s.encode('UTF-16be').decode('utf-8')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 1: 
invalid start byte

py> s.encode('iso-8859-7').decode('utf-8')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 0: 
invalid continuation byte


Somehow, I don't know how because I didn't see it happen, you have one or 
more files in that directory where the file name as bytes is invalid when 
decoded as UTF-8, but your system is set to use UTF-8. So to fix this you 
need to rename the file using some tool that doesn't care quite so much 
about encodings. Use the bash command line to rename each file in turn 
until the problem goes away.



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#47120

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-05 10:43 -0700
Message-ID<4c19b71d-4de5-41ad-b6ae-fb133a6c331e@googlegroups.com>
In reply to#47021
Τη Τετάρτη, 5 Ιουνίου 2013 8:56:36 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε:

Somehow, I don't know how because I didn't see it happen, you have one or 
more files in that directory where the file name as bytes is invalid when 
decoded as UTF-8, but your system is set to use UTF-8. So to fix this you 
need to rename the file using some tool that doesn't care quite so much 
about encodings. Use the bash command line to rename each file in turn 
until the problem goes away. 

But renaming ia hsell access like 'mv 'Euxi tou Ihsou.mp3' 'Ευχή του Ιησου.mp3' leade to that unknown encoding of this bytestream '\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 'Ευχή του Ιησου.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.

[toc] | [prev] | [next] | [standalone]


#47128

FromMRAB <python@mrabarnett.plus.com>
Date2013-06-05 19:32 +0100
Message-ID<mailman.2754.1370457145.3114.python-list@python.org>
In reply to#47120
On 05/06/2013 18:43, Νικόλαος Κούρας wrote:
> Τη Τετάρτη, 5 Ιουνίου 2013 8:56:36 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε:
>
> Somehow, I don't know how because I didn't see it happen, you have one or
> more files in that directory where the file name as bytes is invalid when
> decoded as UTF-8, but your system is set to use UTF-8. So to fix this you
> need to rename the file using some tool that doesn't care quite so much
> about encodings. Use the bash command line to rename each file in turn
> until the problem goes away.
>
> But renaming ia hsell access like 'mv 'Euxi tou Ihsou.mp3' 'Ευχή του Ιησου.mp3' leade to that unknown encoding of this bytestream '\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 'Ευχή του Ιησου.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.
>
Using Python, I think you could get the filenames using os.listdir,
passing the directory name as a bytestring so that it'll return the
names as bytestrings.

Then, for each name, you could decode from its current encoding and
encode to UTF-8 and rename the file, passing the old and new paths to
os.rename as bytestrings.

[toc] | [prev] | [next] | [standalone]


#47131

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-05 11:43 -0700
Message-ID<2be143c4-77c6-4c84-ba1c-46b02bd503ff@googlegroups.com>
In reply to#47128
Τη Τετάρτη, 5 Ιουνίου 2013 9:32:15 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
> On 05/06/2013 18:43, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote:
> 
> > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 5 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 2013 8:56:36 οΏ½.οΏ½. UTC+3, οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ Steven D'Aprano οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½:
> 
> >
> 
> > Somehow, I don't know how because I didn't see it happen, you have one or
> 
> > more files in that directory where the file name as bytes is invalid when
> 
> > decoded as UTF-8, but your system is set to use UTF-8. So to fix this you
> 
> > need to rename the file using some tool that doesn't care quite so much
> 
> > about encodings. Use the bash command line to rename each file in turn
> 
> > until the problem goes away.
> 
> >
> 
' leade to that unknown encoding of this bytestream '\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 'οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½.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.
> 
> >
> 


Actually you were correct i was typing greek and is aw the fileneme here in gogole groups as:

> > But renaming ia hsell access like 'mv 'Euxi tou Ihsou.mp3' 'οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½.mp3

so maybe the filenames have to be decoded to greek-iso but then agian the contain both greek letters but their extension are in english chars like '.mp3'


> Using Python, I think you could get the filenames using os.listdir, 
> passing the directory name as a bytestring so that it'll return the
> names as bytestrings.
 

> Then, for each name, you could decode from its current encoding and 
> encode to UTF-8 and rename the file, passing the old and new paths to
> os.rename as bytestrings.

Iam not sure i follow:

Change this:

# 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) )


to what to make the full url readable by files.py?

[toc] | [prev] | [next] | [standalone]


#47184

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-05 20:43 -0700
Message-ID<1465c96b-c33e-4d5b-894e-b184c031a185@googlegroups.com>
In reply to#47131
Τη Τετάρτη, 5 Ιουνίου 2013 9:43:18 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε:
> Τη Τετάρτη, 5 Ιουνίου 2013 9:32:15 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
> 
> > On 05/06/2013 18:43, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote:
> 
> > 
> 
> > > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 5 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 2013 8:56:36 οΏ½.οΏ½. UTC+3, οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ Steven D'Aprano οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½:
> 
> > 
> 
> > >
> 
> > 
> 
> > > Somehow, I don't know how because I didn't see it happen, you have one or
> 
> > 
> 
> > > more files in that directory where the file name as bytes is invalid when
> 
> > 
> 
> > > decoded as UTF-8, but your system is set to use UTF-8. So to fix this you
> 
> > 
> 
> > > need to rename the file using some tool that doesn't care quite so much
> 
> > 
> 
> > > about encodings. Use the bash command line to rename each file in turn
> 
> > 
> 
> > > until the problem goes away.
> 
> > 
> 
> > >
> 
> > 
> 
> ' leade to that unknown encoding of this bytestream '\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 'οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½.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.
> 
> > 
> 
> > >
> 
> > 
> 
> 
> 
> 
> 
> Actually you were correct i was typing greek and is aw the fileneme here in gogole groups as:
> 
> 
> 
> > > But renaming ia hsell access like 'mv 'Euxi tou Ihsou.mp3' 'οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½.mp3
> 
> 
> 
> so maybe the filenames have to be decoded to greek-iso but then agian the contain both greek letters but their extension are in english chars like '.mp3'
> 
> 
> 
> 
> 
> > Using Python, I think you could get the filenames using os.listdir, 
> 
> > passing the directory name as a bytestring so that it'll return the
> 
> > names as bytestrings.
> 
>  
> 
> 
> 
> > Then, for each name, you could decode from its current encoding and 
> 
> > encode to UTF-8 and rename the file, passing the old and new paths to
> 
> > os.rename as bytestrings.
> 
> 
> 
> Iam not sure i follow:
> 
> 
> 
> Change this:
> 
> 
> 
> # 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) )
> 
> 
> 
> 
> 
> to what to make the full url readable by files.py?

MRAB can you please explain in more clarity your idea of solution?

[toc] | [prev] | [next] | [standalone]


#47188

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-05 21:42 -0700
Message-ID<11732290-894f-4869-921c-da16d00d52e3@googlegroups.com>
In reply to#47184
Can someone else explain to me what MRAB is trying to say to me?
Is there a way even if we dont know the encoding used from filanems to become bytestreams still to be able to open the greek filenames?

[toc] | [prev] | [next] | [standalone]


#47218

FromMRAB <python@mrabarnett.plus.com>
Date2013-06-06 12:35 +0100
Message-ID<mailman.2799.1370518526.3114.python-list@python.org>
In reply to#47184
On 06/06/2013 04:43, Νικόλαος Κούρας wrote:
> Τη Τετάρτη, 5 Ιουνίου 2013 9:43:18 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε:
> > Τη Τετάρτη, 5 Ιουνίου 2013 9:32:15 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
> >
> > > On 05/06/2013 18:43, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote:
> >
> > >
> >
> > > > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 5 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 2013 8:56:36 οΏ½.οΏ½. UTC+3, οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ Steven D'Aprano οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½:
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Somehow, I don't know how because I didn't see it happen, you have one or
> >
> > >
> >
> > > > more files in that directory where the file name as bytes is invalid when
> >
> > >
> >
> > > > decoded as UTF-8, but your system is set to use UTF-8. So to fix this you
> >
> > >
> >
> > > > need to rename the file using some tool that doesn't care quite so much
> >
> > >
> >
> > > > about encodings. Use the bash command line to rename each file in turn
> >
> > >
> >
> > > > until the problem goes away.
> >
> > >
> >
> > > >
> >
> > >
> >
> > ' leade to that unknown encoding of this bytestream '\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 'οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½.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.
> >
> > >
> >
> > > >
> >
> > >
> >
> >
> >
> >
> >
> > Actually you were correct i was typing greek and is aw the fileneme here in gogole groups as:
> >
> >
> >
> > > > But renaming ia hsell access like 'mv 'Euxi tou Ihsou.mp3' 'οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½.mp3
> >
> >
> >
> > so maybe the filenames have to be decoded to greek-iso but then agian the contain both greek letters but their extension are in english chars like '.mp3'
> >
> >
> >
> >
> >
> > > Using Python, I think you could get the filenames using os.listdir,
> >
> > > passing the directory name as a bytestring so that it'll return the
> >
> > > names as bytestrings.
> >
> >
> >
> >
> >
> > > Then, for each name, you could decode from its current encoding and
> >
> > > encode to UTF-8 and rename the file, passing the old and new paths to
> >
> > > os.rename as bytestrings.
> >
> >
> >
> > Iam not sure i follow:
> >
> >
> >
> > Change this:
> >
> >
> >
> > # 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) )
> >
> >
> >
> >
> >
> > to what to make the full url readable by files.py?
>
> MRAB can you please explain in more clarity your idea of solution?
I was suggesting a way to rename the files so that their names are 
encoded in UTF-8 (they appear to be encoded in ISO-8859-7).

You MUST TEST IT thoroughly first, of course, before trying it on the 
actual files.

It could go something like this:


import os

# Give the path as a bytestring so that we'll get the names as bytestrings.
root_folder = b"/home/nikos/public_html/data/apps/"

# Setting TESTING to True will make it print out what renamings it will 
do, but
# not actually do them.
TESTING = True

# Walk through the files.
for root, dirs, files in os.walk(root_folder):
     for name in files:
         try:
             # Is this name encoded in UTF-8?
             name.decode("utf-8")
         except UnicodeDecodeError:
             # Decoding from UTF- failed, which means that the name is 
not valid
             # UTF-8.

             # It appears (from elsewhere) that the names are encoded in
             # ISO-8859-7, so decode from that and re-encode to UTF-8.
             new_name = name.decode("iso-8859-7").encode("utf-8")

             old_path = os.path.join(root, name)
             new_path = os.path.join(root, new_name)
             if TESTING:
                 print("Will rename {!r} to {!r}".format(old_path, 
new_path))
             else:
                 print("Renaming {!r} to {!r}".format(old_path, new_path))
                 os.rename(old_path, new_path)

[toc] | [prev] | [next] | [standalone]


Page 5 of 8 — ← Prev page 1 2 3 4 [5] 6 7 8  Next page →

Back to top | Article view | comp.lang.python


csiph-web