ok so every time i write this
f=open('file.html')
p=f.read()
this come out and i do not understand it help!!
p=f.read()
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8171: ordinal not in range(128)
i am trying to open a .html file (not from a website but a file on my computer)
i know you use open() for .txt file or is this not the code to open .html files
and if so what is it?
or is there a way to convert a .html file into a .txt file?