I have a hex string and i want to convert it utf8 to insert mysql. (my database is utf8)
hex_string = \'kitap ara\\xfet\\xfdrmas\\xfd\' ... result = \'kitap
Try(Python 3.x):
import codecs codecs.decode("707974686f6e2d666f72756d2e696f", "hex").decode('utf-8')
From here.