human
Convert Unicode to UTF-8 Python
assistant
Here is some code to print a unicode string `text`

print(text.encode('windows-1252'))

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