title: How to open html file that contains Unicode characters?
body: <p>I have html file called <code>test.html</code> it has one word <code>בדיקה</code>.</p>
  
  <p>I open the test.html and print it's content  using this block of code:</p>
  
  <pre><code>file = open("test.html", "r")
  print file.read()
  </code></pre>
  
  <p>but it prints <code>??????</code>, why this happened and how could I fix it?</p>
  
  <p>BTW. when I open text file it works good.</p>
  
  <p>Edit: I'd tried this:</p>
  
  <pre><code>&gt;&gt;&gt; import codecs
  &gt;&gt;&gt; f = codecs.open("test.html",'r')
  &gt;&gt;&gt; print f.read()
  ?????
  </code></pre>