human
How to correctly parse UTF-8 encoded HTML to Unicode strings with BeautifulSoup?
assistant
Here is some code to parse UTF-8 encoded HTML response `response` to BeautifulSoup object

soup = BeautifulSoup(response.read().decode('utf-8'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.