human
Python reversing an UTF-8 string
assistant
Here is some code to reverse a UTF-8 string 'a'

b = a.decode('utf8')[::-1].encode('utf8')

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