Skip to content

Conversation

ek247
Copy link
Contributor

@ek247 ek247 commented Jan 10, 2025

Current behavior:

>>> from pymysql.charset import charset_by_name
>>> print(charset_by_name('UTF8'))
None
>>> print(charset_by_name('utf8'))
Charset(id=45, name='utf8mb4', collation='utf8mb4_general_ci')
>>> print(charset_by_name('latin1'))
Charset(id=8, name='latin1', collation='latin1_swedish_ci')
>>> print(charset_by_name('LATIN1'))
Charset(id=8, name='latin1', collation='latin1_swedish_ci')

where I think it's supposed to be able to case-insensitively resolve any utf8 string into utf8mb4

@methane methane merged commit 7dead51 into PyMySQL:main Jan 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants