I have Html document called test.html it has single word בדיקה.
I open the test.html and print its substance utilizing this block of code:
file = open("test.html", "r")
however, it prints ??????, why this occurred and how is it possible that I would fix it?
BTW. at the point when I open a text document, it works great.
I also tried:
>>> import codecs
>>> f = codecs.open("test.html",'r')
>>> print f.read()