connect to gmail with python 'utf-8' codec can't decode byte 0x97 in position 22: invalid start byte code example
Example: UnicodeDecodeError: 'utf-8' codec can't decode byte invalid start byte
# Use 'ISO-8859-1' instead of "utf-8" for decoding
text = open(fn, 'rb').read().decode('ISO-8859-1')