human
Python: Converting from ISO-8859-1/latin1 to UTF-8
assistant
Here is some code to convert string `apple` from iso-8859-1/latin1 to utf-8

apple.decode('iso-8859-1').encode('utf8')

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