Skip to content

Commit

Permalink
solve encoding problem
Browse files Browse the repository at this point in the history
 solve  encoding problem of executing script with  chinese character
  • Loading branch information
snoozebear authored Feb 5, 2020
1 parent ea0b3d4 commit 3d07091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatabaseLibrary/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def execute_sql_script(self, sqlScriptFileName, sansTran=False):
Using optional `sansTran` to run command without an explicit transaction commit or rollback:
| Execute Sql Script | ${EXECDIR}${/}resources${/}DDL-setup.sql | True |
"""
sqlScriptFile = open(sqlScriptFileName)
sqlScriptFile = open(sqlScriptFileName ,encoding='UTF-8')

cur = None
try:
Expand Down

0 comments on commit 3d07091

Please sign in to comment.