title: How to match the same Japanese letters on a CSV file and a string on the script?
body: <p>How to match the same Japanese letters on a CSV file: <em>data1.csv</em> and a string on the script. The <code>result</code> is going to be <code>None</code>. Maybe this is a word code issue but I have no idea how to do it.</p>
  
  <p>Here is my python script: </p>
  
  <pre><code>#!/usr/local/bin/python
  # coding: utf-8
  #!/usr/bin/python
  #! /usr/bin/env python
  # -*- coding:utf-8 -*- 
  
  import re
  print "\n  &lt;&lt;&lt;&lt;&lt; test start &gt;&gt;&gt;&gt;&gt;"
  print "############ csv data 1 ##############"
  
  open_data1 = open("data1.csv",'r')
  read_data1 = open_data1.read()
  print "read_data1:",read_data1
  print "############ txt data 2 ##############"
  
  read_data2 = u"あ"
  print "read_data2:",read_data2
  print "############ result ##############"
  
  result = re.search(read_data2,read_data1)
  print "\nresult:",result
  searched = result.group()
  print "searched:",searched
  print "  &lt;&lt;&lt;&lt;&lt; test end &gt;&gt;&gt;&gt;&gt;\n"
  </code></pre>
  
  <p>data.csv:</p>
  
  <p><img src="https://i.stack.imgur.com/qRuz7.jpg" alt=""></p>