Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2589521

Browse files
committed
fix of a wrong assumption (e.g. decodeIntToUnicode(12345) has been returning a "09" instead of a single unicode character)
1 parent 4d9dcbf commit 2589521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2682,7 +2682,7 @@ def decodeIntToUnicode(value):
26822682
Decodes inferenced integer value with usage of current page encoding
26832683
"""
26842684
try:
2685-
return struct.pack('B' if value<256 else '>H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
2685+
return unichr(value)
26862686
except:
26872687
return INFERENCE_UNKNOWN_CHAR
26882688

0 commit comments

Comments
 (0)