Skip to content

Commit 74138f1

Browse files
Merge pull request #3 from ixcat/unicode
unicode patch-in-progress
2 parents 1617540 + a230b85 commit 74138f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def connect(self):
9494
warnings.filterwarnings('ignore', '.*deprecated.*')
9595
self._conn = client.connect(init_command=self.init_fun,
9696
sql_mode="NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,"
97-
"STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION",
97+
"STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION", charset="utf8",
9898
**self.conn_info)
9999

100100
def register(self, schema):

datajoint/declare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def declare(full_table_name, definition, context):
177177
['PRIMARY KEY (`' + '`,`'.join(primary_key) + '`)'] +
178178
foreign_key_sql +
179179
index_sql) +
180-
'\n) ENGINE=InnoDB, CHARACTER SET latin1, COMMENT "%s"' % table_comment), uses_external
180+
'\n) ENGINE=InnoDB, COMMENT "%s"' % table_comment), uses_external
181181

182182

183183
def compile_attribute(line, in_key, foreign_key_sql):

0 commit comments

Comments
 (0)