From 2589521ecfe3f3ce1c5c6262b1837b613e9a9b18 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 1 Feb 2012 10:38:43 +0000 Subject: [PATCH] fix of a wrong assumption (e.g. decodeIntToUnicode(12345) has been returning a "09" instead of a single unicode character) --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 48300da3a..709569160 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2682,7 +2682,7 @@ def decodeIntToUnicode(value): Decodes inferenced integer value with usage of current page encoding """ try: - return struct.pack('B' if value<256 else '>H', value).decode(kb.pageEncoding or UNICODE_ENCODING) + return unichr(value) except: return INFERENCE_UNKNOWN_CHAR