fixed hex to char

master
parent ca1b3bde6d
commit 89fd819374

@ -1720,14 +1720,10 @@ class utfBin():
def _intToChar(self, x):
he = hex(x)[2:]
ret = None
exec ("ret = '\\x%s'" % he)
return ret
return chr(int(he, 16))
def _hexToChar(self, he):
ret = None
exec ("ret = '\\x%s'" % he)
return ret
return chr(int(he, 16))
def encode(self, text):
"""Кодирует смешанный формат в UTF-8"""

Loading…
Cancel
Save