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 4 of 8 — ← Prev page 1 2 3 [4] 5 6 7 8  Next page →


#46944

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 10:23 -0700
Message-ID<ade1e57a-585f-4941-be0a-1d019a27f1de@googlegroups.com>
In reply to#46939
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.

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


#46949

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2013-06-04 19:53 +0200
Message-ID<mailman.2672.1370368442.3114.python-list@python.org>
In reply to#46944
On Tue, Jun 4, 2013 at 7:23 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list

1. Try re-naming the files to real utf-8.  Make sure your terminal
works on UTF-8 characters.
2. Get rid of your bullshit system and use Flask or Pyramid.  It will
make your life much easier.
3. Put the files in a directory on your server and tell Apache to
create an index, making your life easier, but not as easy as it would
if you did (2) and anywhere near as easy as (2) and (3) combined.
--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html

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


#46953

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 11:27 -0700
Message-ID<dc20ecf5-76dd-4c2e-9a68-7ae3a3882268@googlegroups.com>
In reply to#46949
Τη Τρίτη, 4 Ιουνίου 2013 8:53:38 μ.μ. UTC+3, ο χρήστης Chris "Kwpolska" Warrick έγραψε:
> On Tue, Jun 4, 2013 at 7:23 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> 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.
> 
> > --
> 
> > http://mail.python.org/mailman/listinfo/python-list
> 
> 
> 
> 1. Try re-naming the files to real utf-8.  Make sure your terminal
> 
> works on UTF-8 characters.
> 
> 2. Get rid of your bullshit system and use Flask or Pyramid.  It will
> 
> make your life much easier.
> 
> 3. Put the files in a directory on your server and tell Apache to
> 
> create an index, making your life easier, but not as easy as it would
> 
> if you did (2) and anywhere near as easy as (2) and (3) combined.
> 
> --
> 
> Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
> 
> stop html mail                | always bottom-post
> 
> http://asciiribbon.org        | http://caliburn.nl/topposting.html


1. local is set to utf-8 and the renaming from english to greek happnend in the webhost.

2. No idea wht is flask or pyramid or wsgi

3. Files are located in '/home/nikos/www/data/apps' and they appear in browser direcory listing. Create an index.html you mean?

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


#46957

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2013-06-04 20:45 +0200
Message-ID<mailman.2675.1370371536.3114.python-list@python.org>
In reply to#46953
On Tue, Jun 4, 2013 at 8:27 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> 2. No idea wht is flask or pyramid or wsgi

http://lmgtfy.com/?q=flask+python
http://lmgtfy.com/?q=pyramid+python
http://lmgtfy.com/?q=wsgi+python

> 3. Files are located in '/home/nikos/www/data/apps' and they appear in browser direcory listing. Create an index.html you mean?

If they do, they are already indexed.  Now link stuff to that
directory instead of your fancy files.py thing.

--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html

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


#46958

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 11:51 -0700
Message-ID<0c215f6d-c1eb-4dbf-b132-80e83ece0992@googlegroups.com>
In reply to#46957
Τη Τρίτη, 4 Ιουνίου 2013 9:45:05 μ.μ. UTC+3, ο χρήστης Chris "Kwpolska" Warrick έγραψε:
> On Tue, Jun 4, 2013 at 8:27 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> 
> > 2. No idea wht is flask or pyramid or wsgi
> 
> 
> 
> http://lmgtfy.com/?q=flask+python
> 
> http://lmgtfy.com/?q=pyramid+python
> 
> http://lmgtfy.com/?q=wsgi+python
> 
> 
> 
> > 3. Files are located in '/home/nikos/www/data/apps' and they appear in browser direcory listing. Create an index.html you mean?
> 
> 
> 
> If they do, they are already indexed.  Now link stuff to that
> 
> directory instead of your fancy files.py thing.

No. The file grabbing must be from withing 'files.py' so database inserts happen and counter addition takes place.

Also, it is a good torchering to me to leatn about this damn encoding issues iam having trouble to all my scripr syear now.

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


#46960

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 12:32 -0700
Message-ID<4c271468-22f4-4c93-af14-02b978b2e6bd@googlegroups.com>
In reply to#46958
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?

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


#46963

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 13:03 -0700
Message-ID<0a05fe41-12a9-47e5-a4e9-170140eb3eea@googlegroups.com>
In reply to#46960
>UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc5' in position >61: surrogates not allowed

This indicates that i'am reading the filenames in a different encoding than what they actually are? What is i try to use bytes for path specifications, and have Python decode them in 'utf-8' ?

fullpaths.add( os.path.join(root, fullpath).encode('utf-8') )

Will this work? As Michael said encoding is a process which you take unicode characters and conver them to bytestream using some charset(utf8 here)

Will this work?

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


#46978

FromChris Angelico <rosuav@gmail.com>
Date2013-06-05 07:47 +1000
Message-ID<mailman.2687.1370382939.3114.python-list@python.org>
In reply to#46963
On Wed, Jun 5, 2013 at 6:03 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>>UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc5' in position >61: surrogates not allowed
>
> This indicates that i'am reading the filenames in a different encoding than what they actually are? What is i try to use bytes for path specifications, and have Python decode them in 'utf-8' ?
>
> fullpaths.add( os.path.join(root, fullpath).encode('utf-8') )

For some reason you have an invalid Unicode codepoint in your string. Fix that.

ChrisA

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


#47000

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 20:44 -0700
Message-ID<96d574cf-653a-4d49-a5c9-475dfe082ccb@googlegroups.com>
In reply to#46978
Τη Τετάρτη, 5 Ιουνίου 2013 12:47:17 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:

> >This indicates that i'am reading the filenames in a different encoding than > > >what they actually are? What is i try to use bytes for path specifications,  > > >have Python decode them in 'utf-8' ?

> > fullpaths.add( os.path.join(root, fullpath).encode('utf-8') )

> For some reason you have an invalid Unicode codepoint in your string. Fix that.

Can you be more clear please?
my string is "Ευχή του Ιησού.mp3". Just a Greek filename with spaces.
Is there a problem when a filename contain both english and greek letters?
Isn't it still a unicode stream?

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


#47003

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 21:05 -0700
Message-ID<b7d872bb-2005-456b-8d2e-b5fa22e9e6fe@googlegroups.com>
In reply to#47000
Τη Τετάρτη, 5 Ιουνίου 2013 6:44:38 π.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε:
> Τη Τετάρτη, 5 Ιουνίου 2013 12:47:17 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> 
> 
> 
> > >This indicates that i'am reading the filenames in a different encoding than > > >what they actually are? What is i try to use bytes for path specifications,  > > >have Python decode them in 'utf-8' ?
> 

> > > fullpaths.add( os.path.join(root, fullpath).encode('utf-8') )

> > For some reason you have an invalid Unicode codepoint in your string. Fix that. 

> Can you be more clear please?
> my string is "Ευχή του Ιησού.mp3". Just a Greek filename with spaces. 
> Is there a problem when a filename contain both english and greek letters?
> Isn't it still a unicode stream?


I can't actually check what the actual encoding of a filename stored in hdd is. It should be UTF-8, but it is not. It's probably whatever encoding i had on Windows. Perhaps making sure "root" and "fullpath" are bytes. Then the returned filenames should be bytes as well?

Is this achievable by doing?
print( root.decode('utf-8'), fullpath.decode('utf-8') )

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


#47005

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 21:15 -0700
Message-ID<4fa2ed0b-f6e8-4cfd-bb81-92c30deba91e@googlegroups.com>
In reply to#47003
One of my Greek filenames is "Ευχή του Ιησού.mp3". 
Just a Greek filename with spaces. 
Is there a problem when a filename contain both english and greek letters? 
Isn't it still a unicode string? 

All i did in my CentOS was 'mv "Euxi tou Ihsou.mp3" "Ευχή του Ιησού.mp3" 

and the displayed filename after 'ls -l' returned was:

is -rw-r--r-- 1 nikos nikos 3511233 Jun 4 14:11 \305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3

There is no way at all to check the charset used to store it in hdd?
It should be UTF-8, but it doesn't look like it.
Is there some linxu command or some python command that will print out the actual encoding of '\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3' ?

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


#47020

FromMichael Torrie <torriem@gmail.com>
Date2013-06-04 23:40 -0600
Message-ID<mailman.2702.1370410849.3114.python-list@python.org>
In reply to#47005
On 06/04/2013 10:15 PM, Νικόλαος Κούρας wrote:
> One of my Greek filenames is "Ευχή του Ιησού.mp3". Just a Greek
> filename with spaces. Is there a problem when a filename contain both
> english and greek letters? Isn't it still a unicode string?
> 
> All i did in my CentOS was 'mv "Euxi tou Ihsou.mp3" "Ευχή του
> Ιησού.mp3"
> 
> and the displayed filename after 'ls -l' returned was:
> 
> is -rw-r--r-- 1 nikos nikos 3511233 Jun 4 14:11 \305\365\367\336\
> \364\357\365\ \311\347\363\357\375.mp3
> 
> There is no way at all to check the charset used to store it in hdd? 
> It should be UTF-8, but it doesn't look like it. Is there some linxu
> command or some python command that will print out the actual
> encoding of '\305\365\367\336\ \364\357\365\
> \311\347\363\357\375.mp3' ?

I can see that you are starting to understand things. I can't answer
your question (don't know the answer), but you're correct about one
thing.  A filename is just a sequence of bytes.  We'd hope it would be
utf-8, but it could be anything.  Even worse, it's not possible to tell
from a byte stream what encoding it is unless we just try one and see
what happens.  Text editors, for example, have to either make a guess
(utf-8 is a good one these days), or ask, or try to read from the first
line of the file using ascii and see if there's a source code character
set command to give it an idea.

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


#47024

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 23:05 -0700
Message-ID<9c2e636c-2ca3-48d3-bf67-b7d87d45ebb0@googlegroups.com>
In reply to#47020
Τη Τετάρτη, 5 Ιουνίου 2013 8:40:39 π.μ. UTC+3, ο χρήστης Michael Torrie έγραψε:
> On 06/04/2013 10:15 PM, Νικόλαος Κούρας wrote:
> 
> > One of my Greek filenames is "Ευχή του Ιησού.mp3". Just a Greek
> 
> > filename with spaces. Is there a problem when a filename contain both
> 
> > english and greek letters? Isn't it still a unicode string?
> 
> > 
> 
> > All i did in my CentOS was 'mv "Euxi tou Ihsou.mp3" "Ευχή του
> 
> > Ιησού.mp3"
> 
> > 
> 
> > and the displayed filename after 'ls -l' returned was:
> 
> > 
> 
> > is -rw-r--r-- 1 nikos nikos 3511233 Jun 4 14:11 \305\365\367\336\
> 
> > \364\357\365\ \311\347\363\357\375.mp3
> 
> > 
> 
> > There is no way at all to check the charset used to store it in hdd? 
> 
> > It should be UTF-8, but it doesn't look like it. Is there some linxu
> 
> > command or some python command that will print out the actual
> 
> > encoding of '\305\365\367\336\ \364\357\365\
> 
> > \311\347\363\357\375.mp3' ?
> 
> 
> 
> I can see that you are starting to understand things. I can't answer
> your question (don't know the answer), but you're correct about one
> thing.  A filename is just a sequence of bytes.  We'd hope it would be
> utf-8, but it could be anything.  Even worse, it's not possible to tell
> from a byte stream what encoding it is unless we just try one and see
> what happens.  Text editors, for example, have to either make a guess
> (utf-8 is a good one these days), or ask, or try to read from the first
> line of the file using ascii and see if there's a source code character 
> set command to give it an idea.


Um, is there a way even if we don't actually know the encoding CentOS used to store the filename to hdd to tell Python to just open the bytestream as it is?

I don't know if its possible, but iam looking for a way to skip the encoding, since we have now way of knowing what this is.

This is very weird because:


nikos@superhost.gr [~]# 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=
nikos@superhost.gr [~]#

all i did it was a simple rename from english to greek. Since locale is set to use utf8, shouldnt the result in the hdd be an utf-8 bytestream?

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


#47023

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

> One of my Greek filenames is "Ευχή του Ιησού.mp3". Just a Greek filename
> with spaces.
> Is there a problem when a filename contain both english and greek
> letters? Isn't it still a unicode string?

No problem, and Unicode includes both English and Greek letters.


> All i did in my CentOS was 'mv "Euxi tou Ihsou.mp3" "Ευχή του Ιησού.mp3"

That's not what you wrote earlier. You said you used FileZilla to 
transfer the files from Windows 8.


> and the displayed filename after 'ls -l' returned was:
> 
> is -rw-r--r-- 1 nikos nikos 3511233 Jun 4 14:11 \305\365\367\336\
> \364\357\365\ \311\347\363\357\375.mp3
> 
> There is no way at all to check the charset used to store it in hdd? It
> should be UTF-8, but it doesn't look like it. Is there some linxu
> command or some python command that will print out the actual encoding
> of '\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3' ?

You have misunderstood.

The Linux file system does not track encodings. It just stores bytes.

There is no *reliable* way to guess the encoding that a bunch of bytes 
came from. If your bytes look like 

0x48 0x65 0x6c 0x6c 0x6f 0x20 0x77 0x6f 0x72 0x6c 0x64 0x21

(ASCII "Hello World!") then you might *guess* that the encoding is ASCII, 
or UTF-8, or Latin-1. But in general, you can't go from the bytes to the 
encoding. Encodings are out-of-band information.


-- 
Steven

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


#47027

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 23:40 -0700
Message-ID<84355c27-20e2-43a0-87b8-d54fb108a562@googlegroups.com>
In reply to#47023
Τη Τετάρτη, 5 Ιουνίου 2013 9:03:41 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε:
Nikos wrote:
> > and the displayed filename after 'ls -l' returned was:
> > is -rw-r--r-- 1 nikos nikos 3511233 Jun 4 14:11 \305\365\367\336\
> > \364\357\365\ \311\347\363\357\375.mp3

> > There is no way at all to check the charset used to store it in hdd? It
> > should be UTF-8, but it doesn't look like it. Is there some linxu
> > command or some python command that will print out the actual encoding
> > of '\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3' ?

> The Linux file system does not track encodings. It just stores bytes.
> There is no *reliable* way to guess the encoding that a bunch of bytes  
> came from. If your bytes look like 

> 0x48 0x65 0x6c 0x6c 0x6f 0x20 0x77 0x6f 0x72 0x6c 0x64 0x21

> (ASCII "Hello World!") then you might *guess* that the encoding is ASCII, 
> or UTF-8, or Latin-1. But in general, you can't go from the bytes to the 
> encoding. Encodings are out-of-band information.


Your explanation of encoding/decoding is excellent and iam storing this Steven!
So what i understand now is:

encoding = string -> (some charset used) -> charset bytes
decoding = bytes -> (have to know what charset has been used) -> original string

Have i understtod corrctly, that the *key* to the whole encode/decode process is the charset used/has to be used?

string = 'Ευχή του Ιησού.mp3'
abive string in unknown charset bytes = '\305\365\367\336\364\357\365\ \311\347\363\357\375.mp3'

We dont know they key(charset) used, but we do know the original form of the string, so it occured to me that if we write a python script to decode the mojabike bytestream to all available charsets then as some point the original string will appear back!


Won't you agree steven? Of course if that is likeley to work i don't know how to write it.


Hre is the comamnds you asked.
-----------------------------------------
nikos@superhost.gr [~/www/data/apps]# printf %q\n\n *
100\ Mythoi\ tou\ Aiswpou.pdfnnAnekdotologio.exennBattleship.exenn$'\323\352\335                                                                                        \370\357\365 \335\355\341\355 \341\361\351\350\354\374.exe'nnKosmas\ o\ Aitwlos\                                                                                         -\ Profiteies.pdfnnLuxor\ Evolved.exennMonopoly.exenn$'\305\365\367\336 \364\35                                                                                        7\365 \311\347\363\357\375.mp3'nnOnline\ Movie\ Player.zipnnO\ Nomos\ tou\ Merfy                                                                                        \ v1-2-3.zipnnOrthodoxo\ Imerologio.exennPac-Man.exennScrabble.exennTo\ 1o\ mou\                                                                                         vivlio\ gia\ to\ skaki.pdfnnVivlos\ gia\ Atheofovous.pdfnnV-Radio\ v2.4.msinnni
                                                                                        nikos@superhost.gr [~/www/data/apps]# ls -b *
100\ Mythoi\ tou\ Aiswpou.pdf*                                            Online\ Movie\ Player.zip*
Anekdotologio.exe*                                                        O\ Nomos\ tou\ Merfy\ v1-2-3.zip
Battleship.exe                                                            Orthodoxo\ Imerologio.exe*
\323\352\335\370\357\365\ \335\355\341\355\ \341\361\351\350\354\374.exe  Pac-Man.exe
Kosmas\ o\ Aitwlos\ -\ Profiteies.pdf*                                    Scrabble.exe
Luxor\ Evolved.exe                                                        To\ 1o\ mou\ vivlio\ gia\ to\ skaki.pdf*
Monopoly.exe                                                              Vivlos\ gia\ Atheofovous.pdf*
\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3                  V-Radio\ v2.4.msi
nikos@superhost.gr [~/www/data/apps]#
-------------------------------

I uploaded via FileZilla the files with english chars and then reanmes from CentOS, i did that to avoid renaming them from within my Win8. I though it was betetr to rename form within linux itself.

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


#47068

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-05 04:08 -0700
Message-ID<a39639a6-0446-4012-9cd0-3e0e766309d3@googlegroups.com>
In reply to#47027
Is the above way likely to work Steven?

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


#47111

FromMRAB <python@mrabarnett.plus.com>
Date2013-06-05 17:44 +0100
Message-ID<mailman.2746.1370450657.3114.python-list@python.org>
In reply to#47005
On 05/06/2013 06:40, Michael Torrie wrote:
> On 06/04/2013 10:15 PM, Νικόλαος Κούρας wrote:
>> One of my Greek filenames is "Ευχή του Ιησού.mp3". Just a Greek
>> filename with spaces. Is there a problem when a filename contain both
>> english and greek letters? Isn't it still a unicode string?
>>
>> All i did in my CentOS was 'mv "Euxi tou Ihsou.mp3" "Ευχή του
>> Ιησού.mp3"
>>
>> and the displayed filename after 'ls -l' returned was:
>>
>> is -rw-r--r-- 1 nikos nikos 3511233 Jun 4 14:11 \305\365\367\336\
>> \364\357\365\ \311\347\363\357\375.mp3
>>
>> There is no way at all to check the charset used to store it in hdd?
>> It should be UTF-8, but it doesn't look like it. Is there some linxu
>> command or some python command that will print out the actual
>> encoding of '\305\365\367\336\ \364\357\365\
>> \311\347\363\357\375.mp3' ?
>
> I can see that you are starting to understand things. I can't answer
> your question (don't know the answer), but you're correct about one
> thing.  A filename is just a sequence of bytes.  We'd hope it would be
> utf-8, but it could be anything.  Even worse, it's not possible to tell
> from a byte stream what encoding it is unless we just try one and see
> what happens.  Text editors, for example, have to either make a guess
> (utf-8 is a good one these days), or ask, or try to read from the first
> line of the file using ascii and see if there's a source code character
> set command to give it an idea.
>
 From the previous posts I guessed that the filename might be encoded
using ISO-8859-7:

 >>> s = b"\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3"
 >>> s.decode("iso-8859-7")
'Ευχή\\ του\\ Ιησού.mp3'

Yes, that looks the same.

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


#47119

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-05 10:34 -0700
Message-ID<62414b7b-c52d-4347-a9b3-1d4ef7137770@googlegroups.com>
In reply to#47111
Τη Τετάρτη, 5 Ιουνίου 2013 7:44:14 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:

>  >>> s = b"\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3"
>  >>> s.decode("iso-8859-7")
> 
> 'οΏ½οΏ½οΏ½οΏ½\\ οΏ½οΏ½οΏ½\\ οΏ½οΏ½οΏ½οΏ½οΏ½.mp3'

> Yes, that looks the same.


You are decoding the "uknown" filename bytestream pretending to know that greek-iso was used to encode it into bytes.

But if that was the case then the originsal sting would have to be 'Ευχή του Ιησου.mp3' and not 'οΏ½οΏ½οΏ½οΏ½\\ οΏ½οΏ½οΏ½\\ οΏ½οΏ½οΏ½οΏ½οΏ½.mp3'

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


#47198

FromHeiko Wundram <modelnine@modelnine.org>
Date2013-06-06 10:50 +0200
Message-ID<mailman.2788.1370508661.3114.python-list@python.org>
In reply to#47005
Am 05.06.2013 18:44, schrieb MRAB:
>  From the previous posts I guessed that the filename might be encoded
> using ISO-8859-7:
>
>  >>> s = b"\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3"
>  >>> s.decode("iso-8859-7")
> 'Ευχή\\ του\\ Ιησού.mp3'
>
> Yes, that looks the same.

Most probably, his terminal is set to ISO-8859-7, so that when he issues 
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.

-- 
--- Heiko.

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


#47205

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-06 03:35 -0700
Message-ID<467f8885-7ee1-4ecc-a62a-da056e128d70@googlegroups.com>
In reply to#47198
Τη Πέμπτη, 6 Ιουνίου 2013 11:50:55 π.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε:
> Am 05.06.2013 18:44, schrieb MRAB:
> 
> >  From the previous posts I guessed that the filename might be encoded
> 
> > using ISO-8859-7:
> 
> >
> 
> >  >>> s = b"\305\365\367\336\ \364\357\365\ \311\347\363\357\375.mp3"
> 
> >  >>> s.decode("iso-8859-7")
> 
> > 'οΏ½οΏ½οΏ½οΏ½\\ οΏ½οΏ½οΏ½\\ οΏ½οΏ½οΏ½οΏ½οΏ½.mp3'
> 
> >
> 
> > Yes, that looks the same.
> 
> 
> 
> Most probably, his terminal is set to ISO-8859-7, so that when he issues 
> 
> 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.
> 
> 
> 
> -- 
> 
> --- Heiko.

nikos@superhost.gr [~/www/data/apps]# ls -l | file -
/dev/stdin: ASCII text


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

----------------------------
[Thu Jun 06 13:34:19 2013] [error] [client 79.103.41.173]     cur.execute('''SELECT url FROM files WHERE url = %s''', fullpath.encode('iso-8859-7') )
[Thu Jun 06 13:34:19 2013] [error] [client 79.103.41.173]   File "/usr/local/lib/python3.3/encodings/iso8859_7.py", line 12, in encode
[Thu Jun 06 13:34:19 2013] [error] [client 79.103.41.173]     return codecs.charmap_encode(input,errors,encoding_table)
[Thu Jun 06 13:34:19 2013] [error] [client 79.103.41.173] UnicodeEncodeError: 'charmap' codec can't encode characters in position 34-37: character maps to <undefined>


[Thu Jun 06 13:27:17 2013] [error] [client 79.103.41.173] Traceback (most recent call last):
[Thu Jun 06 13:27:17 2013] [error] [client 79.103.41.173]   File "files.py", line 73, in <module>
[Thu Jun 06 13:27:17 2013] [error] [client 79.103.41.173]     cur.execute('''SELECT url FROM files WHERE url = %s''', fullpath.decode('iso-8859-7') )
[Thu Jun 06 13:27:17 2013] [error] [client 79.103.41.173] AttributeError: 'str' object has no attribute 'decode'

Same when i encode in latin

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


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

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


csiph-web