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


Groups > comp.lang.python > #76557

Re: python scikits.audiolab Sndfile special chars in file name

Date 2014-08-19 12:05 +0100
From MRAB <python@mrabarnett.plus.com>
Subject Re: python scikits.audiolab Sndfile special chars in file name
References <CABy8q84h2Cs9o9byiPC6wsOu_=E49tRagxrVerrKCBBxFv73+g@mail.gmail.com> <CAPTjJmrcmBLeBY9Wo-twvT1KVq0MP5LnLPAE8kKrnaN8W8Bg7g@mail.gmail.com> <lsuvu9$gjh$1@ger.gmane.org> <CABy8q87bC0jH8F_HjzDy2c7P_J3RwLvh-Yt9WdyGOteYgT3HAg@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13142.1408446352.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-08-19 09:05, Furqan wasi wrote:
> *Hi Mark and all, *
>
>           Thanks for the replay i appreciate your help but the problem i
> have is not with the FileNotFoundError exception handling because the
> file exists but the problem is that the library libsndfile/Sndfile
> (python third party) which is child class/module of scikits.audiolab
> (python third party) is not reading file with special character in its
> path and name , i need some help to in how to make library
> libsndfile/Sndfile to read file with special character in it  i.e
> C:\Users\Furqan\Desktop\test\查找問題daw\查找問題d.wav, as i mentioned
> in my first email
>
I recommend that you use Unicode strings instead of bytestrings:

track1 = ur'C:\Users\Furqan\Desktop\test\查找問題daw\查找問題d.wav'

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python scikits.audiolab Sndfile special chars in file name MRAB <python@mrabarnett.plus.com> - 2014-08-19 12:05 +0100

csiph-web