From f4e7bf1d512a5830386e7050a9adcab225fb450a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 1 Feb 2012 14:17:27 +0000 Subject: [PATCH] minor update regarding support for Unicode characters in Oracle --- lib/core/common.py | 6 +++++- xml/queries.xml | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 709569160..f0a97387a 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2682,7 +2682,11 @@ def decodeIntToUnicode(value): Decodes inferenced integer value with usage of current page encoding """ try: - return unichr(value) + # http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord + if Backend.getIdentifiedDbms() in (DBMS.MYSQL,): + return struct.pack('B' if value<256 else ' - + - +