mirror of
https://github.com/LC044/WeChatMsg
synced 2025-04-29 09:18:18 +08:00
修复查询数据库中结果不能编码到UTF-8的问题
This commit is contained in:
parent
4a357dca24
commit
79468338a1
@ -14,6 +14,7 @@ def merge_databases(source_paths, target_path):
|
|||||||
break
|
break
|
||||||
db = sqlite3.connect(source_path)
|
db = sqlite3.connect(source_path)
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
|
cursor.text_factory = bytes
|
||||||
sql = '''
|
sql = '''
|
||||||
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra
|
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra
|
||||||
FROM MSG;
|
FROM MSG;
|
||||||
|
Loading…
Reference in New Issue
Block a user