我收到了一些编码的文本,但我不知道使用了什么字符集.有没有办法使用Python确定文本文件的编码?如何检测文本文件的编码/代码页处理C#.
python encoding text-files
我有一个十六进制字符串,我想将它转换为 utf8 以插入 mysql。(我的数据库是utf8)
hex_string = 'kitap ara\xfet\xfdrmas\xfd' ... result = 'kitap ara?t?rmas?'
我怎样才能做到这一点?
python hex utf-8 python-2.x
python ×2
encoding ×1
hex ×1
python-2.x ×1
text-files ×1
utf-8 ×1