Skip to content

Commit 4c7aff7

Browse files
add connection.charset to dj.config
1 parent 1617540 commit 4c7aff7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

datajoint/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def query(self, query, args=(), as_dict=False, suppress_warnings=True):
119119
:param args: additional arguments for the client.cursor
120120
:param as_dict: If as_dict is set to True, the returned cursor objects returns
121121
query results as dictionary.
122-
:param suppress_warning: If True, suppress all warnings arising from underlying query library
122+
:param suppress_warnings: If True, suppress all warnings arising from underlying query library
123123
"""
124124

125125
cursor = client.cursors.DictCursor if as_dict else client.cursors.Cursor

datajoint/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'database.user': None,
3434
'database.port': 3306,
3535
'connection.init_function': None,
36+
'connection.charset': 'utf8',
3637
'database.reconnect': False,
3738
'loglevel': 'INFO',
3839
'safemode': True,

0 commit comments

Comments
 (0)