Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'mrab': 0.05; '(python': 0.07; 'subject:file': 0.07; 'subject:skip:s 10': 0.07; '(unicode': 0.09; 'truncated': 0.09; 'cc:addr:python-list': 0.11; 'codec': 0.16; 'i.e': 0.16; 'party)': 0.16; 'skip:u 50': 0.16; 'skip:u 60': 0.16; 'syntaxerror:': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'library': 0.18; 'all,': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'exists': 0.24; 'unicode': 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'header:In- Reply-To:1': 0.27; 'character': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'getting': 0.31; "skip:' 10": 0.31; 'file': 0.32; 'url:python': 0.33; 'third': 0.33; 'problem': 0.35; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'pm,': 0.38; 'url:mail': 0.40; 'how': 0.40; 'read': 0.60; 'mentioned': 0.61; 'first': 0.61; 'name': 0.63; 'special': 0.74; 'replay': 0.84; '*best': 0.91; 'regards*': 0.91; '8bit%:18': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geekschicago.com; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=4h2UA/otnOpaUJlEaMsewzKoUM7ZXq1Cg7tKjsPYnhw=; b=E5x9nEJKH77MPxJ5ODmDLdltHgjM55iukhtHjSgtiFDEnMaVB7tybGUQcLsA9vSRZ2 pczORZOwrY6jY3vm2QIuv/Jcj2Z8FMLSoAWnl4VwZ59+5TndX7I1Kn/QYxC5xB+Jwozj TxFv0IO08r8t9gZcfMCYaUPL2U3K3EViatPEM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=4h2UA/otnOpaUJlEaMsewzKoUM7ZXq1Cg7tKjsPYnhw=; b=jdT9+zX9VliUzJGVTC9gvOePzjpcWCTrKOMGhAtSI+xXa360dLrEB8itlo2nRqRbNX uuqxiZ05EN0MH5qqk79ATgmR33CBzg8sHVulG0cOo9jkizE4u2HmKSygylPIV20oN7Sk WbfEsWLbQCXiRfaW+zrsANEnOZKNPhb2zi7yhnn5mQbkoGd4vJ5f0M2UKUo7hzexgzfX N3msRawbs605XXD7VlXD0E1TFRynLiFJF/Wbht67QTvdIH8U2j+X5FbFs9c22SfqmC8j 71LOjFK7ArQJkKawi0/Y3Yg/Ib8wMFx/QnBV+RVuYYOI/RTrLYd21cK3KRGzPEnlH+DR s+IA== X-Gm-Message-State: ALoCoQmtEvgrdoLqx560B6ZP9moF5x+7l/7zQ7xgYfPD0wY6mc/nxCg1aZyN2DS7Hn621De3ieqg X-Received: by 10.224.44.14 with SMTP id y14mr64810238qae.34.1408450491149; Tue, 19 Aug 2014 05:14:51 -0700 (PDT) MIME-Version: 1.0 Sender: furqan@geekschicago.com X-Originating-IP: [202.166.163.98] In-Reply-To: <53F32F8E.6010502@mrabarnett.plus.com> References: <53F32F8E.6010502@mrabarnett.plus.com> From: Furqan wasi Date: Tue, 19 Aug 2014 17:14:11 +0500 X-Google-Sender-Auth: 5qLZMAOPCdOqSPmPvsYOiaFTDtE Subject: Re: python scikits.audiolab Sndfile special chars in file name To: MRAB Content-Type: multipart/alternative; boundary=047d7bdc8d5e3586250500fa6f35 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 110 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408450499 news.xs4all.nl 2905 [2001:888:2000:d::a6]:36576 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76558 --047d7bdc8d5e3586250500fa6f35 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Getting this file =3D ur"C:\Users\Furqan\Desktop\=E6=9F=A5=E6=89=BE=E5=95=8F=E9=A1=8CRef= erence\1.wav" SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode bytes in position 2-3: truncated \uXXXX On Tue, Aug 19, 2014 at 4:05 PM, MRAB wrote: > 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\=E6=9F=A5=E6=89=BE=E5=95=8F=E9=A1=8Cdaw\=E6= =9F=A5=E6=89=BE=E5=95=8F=E9=A1=8Cd.wav, as i mentioned >> in my first email >> >> I recommend that you use Unicode strings instead of bytestrings: > > track1 =3D ur'C:\Users\Furqan\Desktop\test\=E6=9F=A5=E6=89=BE=E5=95=8F=E9= =A1=8Cdaw\=E6=9F=A5=E6=89=BE=E5=95=8F=E9=A1=8Cd.wav' > > -- > https://mail.python.org/mailman/listinfo/python-list > --=20 *Best Regards* Furqan Wasi *AVPreserve * --047d7bdc8d5e3586250500fa6f35 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=
Getting this=C2=A0

<= font face=3D"comic sans ms, sans-serif">
file =3D ur"C:\Users\Furqan\Desktop\=E6=9F=A5= =E6=89=BE=E5=95=8F=E9=A1=8CReference\1.wav"
SyntaxError: (unicode error) 'rawunicodeescape' codec can't dec= ode bytes in position 2-3: truncated \uXXXX


On Tue, Aug 19, 2014 at 4:0= 5 PM, MRAB <python@mrabarnett.plus.com> wrote:
On 2014-08-19 09:05, Furqan wasi wrote:
*Hi Mark and all, *


=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 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=C2=A0 i.e
C:\Users\Furqan\Desktop\test\=E6=9F=A5=E6=89=BE=E5=95=8F=E9=A1=8Cdaw= \=E6=9F=A5=E6=89=BE=E5=95=8F=E9=A1=8Cd.wav, as i mentioned
in my first email

I recommend that you use Unicode strings instead of bytestrings:

track1 =3D ur'C:\Users\Furqan\Desktop\test\=E6=9F=A5=E6=89=BE=E5= =95=8F=E9=A1=8Cdaw\=E6=9F=A5=E6=89=BE=E5=95=8F=E9=A1=8Cd.wav'

--
https://mail.python.org/mailman/listinfo/python-list



--

Best Regards

Furqan Wasi

AVPreserve=C2=A0

--047d7bdc8d5e3586250500fa6f35--