fixed hex to char

master
parent ca1b3bde6d
commit 89fd819374

@ -1720,16 +1720,12 @@ 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):
def encode(self, text):
"""Кодирует смешанный формат в UTF-8"""
ind = 0
utf = []

Loading…
Cancel
Save