Skip to content

Commit

Permalink
Use utf8 charset by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmingrz committed Jul 19, 2022
1 parent 5912536 commit 9fbe9f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def unicode_literal(u, dummy=None):
return db.string_literal(u.encode(db.encoding))

if not charset:
charset = "latin1"
charset = "utf8"
self.set_character_set(charset)

if sql_mode:
Expand Down
2 changes: 1 addition & 1 deletion metadata.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version: 1.4.0.2
version: 1.4.0.3
version_info: (1,4,0,'final',0)
description: Python interface to MySQL
author: Inada Naoki
Expand Down

0 comments on commit 9fbe9f3

Please sign in to comment.