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

Skip to content

Commit b380d34

Browse files
committed
Added unicode support also to SQLite (2 and 3) connector - see #184.
1 parent 0362f44 commit b380d34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/dbms/sqlite/connector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
except ImportError, _:
2929
pass
3030

31+
from lib.core.convert import utf8encode
3132
from lib.core.data import conf
3233
from lib.core.data import logger
3334
from lib.core.exception import sqlmapConnectionException
@@ -75,7 +76,7 @@ def fetchall(self):
7576

7677
def execute(self, query):
7778
try:
78-
self.cursor.execute(query)
79+
self.cursor.execute(utf8encode(query))
7980
except sqlite3.OperationalError, msg:
8081
logger.log(8, msg[0])
8182
except sqlite3.DatabaseError, msg:

0 commit comments

Comments
 (0)