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