Convert hex to utf in Python -
I have hex string and I want to change utf8 to insert myfq into it. (My database is utf8)
hex_string = 'kitap ara \ xfet \ xfdrmas \ xfd' .. .. result = 'kitap araştırması'
I How can i do this Good relation with everybody.
Python 2.6,
& gt; & Gt; & Gt; Print ('kitap ara \ xfet \ xfdrmas \ xfd'.decode (' iso-8859-9 ')) kitap araştırması & gt; & Gt; & Gt; 'Kitap ara \ xfet \ xfdrmas \ xfd'.decode (' iso-8859-9 '). Transcript ('utf-8') 'kitap ara \ xc5 \ x 9ft \ xc4 \ xb1rmas \ xc4 \ xb1'
Comments
Post a Comment