reverse a UTF-8 string 'a',b = a.decode('utf8')[::-1].encode('utf8')