Skip to content

Commit

Permalink
修复查询数据库中结果不能编码到UTF-8的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
daimiaopeng committed Dec 6, 2023
1 parent 4a357dc commit 0400644
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/DataBase/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def merge_databases(source_paths, target_path):
if not os.path.exists(source_path):
break
db = sqlite3.connect(source_path)
db.text_factory = bytes
cursor = db.cursor()
sql = '''
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra
Expand Down

0 comments on commit 0400644

Please sign in to comment.