<div dir="ltr"><div class="gmail_default" style><div class="gmail_default" style><span style="font-family:'comic sans ms',sans-serif"><br>Getting this </span><br></div><div class="gmail_default" style><font face="comic sans ms, sans-serif"><br>

</font></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">file = ur"C:\Users\Furqan\Desktop\查找問題Reference\1.wav"</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">

SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode bytes in position 2-3: truncated \uXXXX</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 19, 2014 at 4:05 PM, MRAB <span dir="ltr"><<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2014-08-19 09:05, Furqan wasi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
*Hi Mark and all, *<div class=""><br>
<br>
          Thanks for the replay i appreciate your help but the problem i<br>
have is not with the FileNotFoundError exception handling because the<br>
file exists but the problem is that the library libsndfile/Sndfile<br>
(python third party) which is child class/module of scikits.audiolab<br>
(python third party) is not reading file with special character in its<br>
path and name , i need some help to in how to make library<br>
libsndfile/Sndfile to read file with special character in it  i.e<br>
C:\Users\Furqan\Desktop\test\<u></u>查找問題daw\查找問題d.wav, as i mentioned<br>
in my first email<br>
<br>
</div></blockquote>
I recommend that you use Unicode strings instead of bytestrings:<br>
<br>
track1 = ur'C:\Users\Furqan\Desktop\<u></u>test\查找問題daw\查找問題d.wav'<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-size:small"><br><font face="comic sans ms, sans-serif"><b>Best Regards</b></font></span><div><span style="font-size:small"><font face="comic sans ms, sans-serif"><b><br>

</b></font><font face="arial">Furqan Wasi</font></span><br style="font-family:arial;font-size:small"><b style="font-family:arial;font-size:small"><font color="#D5631D">AVPreserve </font></b><br></div><div><b style="font-family:arial;font-size:small"><font color="#D5631D"><br>

</font></b></div></div>
</div>