Contact: aviboots(AT)netvision.net.il
41,692 questions
54,362 answers
573 users
s = 'Ύμνος - abc' byte = s.encode('utf-8') hex = byte.hex() print(hex) ''' run: ce8ecebccebdcebfcf82202d20616263 '''
import binascii s = 'Ύμνος - abc' byte = s.encode('utf-8') hex = binascii.hexlify(byte) print(hex) ''' run: b'ce8ecebccebdcebfcf82202d20616263' '''
import binascii s = 'Ύμνος - abc' byte = s.encode('utf-8') hex = binascii.hexlify(byte).decode('utf-8') print(hex) ''' run: ce8ecebccebdcebfcf82202d20616263 '''