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

Skip to content

Commit 367de83

Browse files
committed
minor update
1 parent 4ac3794 commit 367de83

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
@@ -2538,7 +2538,7 @@ def decodeIntToUnicode(value):
25382538
"""
25392539
try:
25402540
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
2541-
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
2541+
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,) or conf.charset:
25422542
return struct.pack('B' if value < 256 else '<H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
25432543
else:
25442544
return unichr(value)

0 commit comments

Comments
 (0)