Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107871
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: about special characters |
| Date | 2016-04-30 09:52 +1000 |
| Message-ID | <mailman.235.1461973955.32212.python-list@python.org> (permalink) |
| References | <CAJ7mry+o=PRGtM46HPGdNVqaowy3tmheJKu38nRy4y_QEjqV-w@mail.gmail.com> <85zischt1i.fsf@benfinney.id.au> |
Jianling Fan <fanjianling@gmail.com> writes: > I am trying to use python 27 copying some of my folders and files to > another directory. (There has never been a Python 27. I assume Python 2.7 is what you meant.) > My code works good for other files but I have some problem to copy > files that have some special characters in the filename. like > filenames contain Greek "δ" or latin "š". You may already know that Python 2 handles international text a lot less consistently than Python 3. Is it at all feasible for you to use Python 3 instead? Text handling is specifically a big advantage of Python 3. > it always gave a error that "No such file or directory:" Please give a complete, small example: * The actual filenames. * The exact filesystem encoding that filesystem uses. Be sure to verify that! * A very small, but complete, Python program which exhibits the behaviour. We will need to be able to run the same program. * The complete error output (the full traceback). -- \ “Corporation, n. An ingenious device for obtaining individual | `\ profit without individual responsibility.” —Ambrose Bierce, | _o__) _The Devil's Dictionary_, 1906 | Ben Finney
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: about special characters Ben Finney <ben+python@benfinney.id.au> - 2016-04-30 09:52 +1000
Re: about special characters Steven D'Aprano <steve@pearwood.info> - 2016-04-30 10:56 +1000
Re: about special characters Ben Finney <ben+python@benfinney.id.au> - 2016-04-30 11:48 +1000
Re: about special characters eryk sun <eryksun@gmail.com> - 2016-04-29 21:35 -0500
Re: about special characters Terry Reedy <tjreedy@udel.edu> - 2016-04-29 22:37 -0400
Re: about special characters Ben Finney <ben+python@benfinney.id.au> - 2016-04-30 12:43 +1000
Re: about special characters MRAB <python@mrabarnett.plus.com> - 2016-04-30 03:53 +0100
csiph-web