Convert hex to utf in Python

Posted by user260223 on Stack Overflow See other posts from Stack Overflow or by user260223
Published on 2010-06-15T14:02:30Z Indexed on 2010/06/15 14:12 UTC
Read the original article Hit count: 252

Filed under:
|
|
|

Hi.. 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 arastirmasi'

How can i do that? Best regards.

© Stack Overflow or respective owner

Related posts about python

Related posts about conversion