title: Python: Check if a string contains chinese character?
body: <p>A string maybe this </p>
  
  <pre><code>ipath= "./data/NCDC/上海/虹桥/9705626661750dat.txt"
  </code></pre>
  
  <p>or this</p>
  
  <pre><code>ipath = './data/NCDC/ciampino/6240476818161dat.txt'
  </code></pre>
  
  <p>How do I know the first string contains <strong>chinese</strong>?</p>
  
  <p>I find this answer maybe helpful: 
  <a href="https://stackoverflow.com/questions/2718196/find-all-chinese-text-in-a-string-using-python-and-regex">Find all Chinese text in a string using Python and Regex</a></p>
  
  <p>but it didn't work out: </p>
  
  <pre><code>import re
  ipath= "./data/NCDC/上海/虹桥/9705626661750dat.txt"
  re.findall(ur'[\u4e00-\u9fff]+', ipath) # =&gt; []
  </code></pre>