Fix garbled message text: Difference between revisions

Jump to navigation Jump to search
m
Line 147: Line 147:
hex_notation
hex_notation
# print b'\xe8\xb1\xa1'
# print b'\xe8\xb1\xa1'
for each_unicode_character in hex_notation.decode('utf-8'):
    print(each_unicode_character)
data = u"🐘"
data
hex_notation = data.encode('utf-8')
hex_notation
# print b'\xf0\x9f\x90\x98'
for each_unicode_character in hex_notation.decode('utf-8'):
for each_unicode_character in hex_notation.decode('utf-8'):
     print(each_unicode_character)
     print(each_unicode_character)

Navigation menu