When I run my application, I get this error. UnicodeDecodeError: codec "utf8" cannot decode byte 0xe9 at position 2566: invalid continuation byte. I use UTF8 in my HTML file
<meta charset="utf-8" />
and in my python file
# -*- coding: utf-8 -*- self.response.headers['Content-Type'] = 'text/html; charset=UTF-8'
I saw some solutions on the Internet using the encode () function, but I don't want to embed text in a Python file, but in an HTML file.
source share