Skip to content

Encode string passwords as UTF-8 - #1265

Open
gyanu2507 wants to merge 1 commit into
PyMySQL:mainfrom
gyanu2507:password-utf8
Open

Encode string passwords as UTF-8#1265
gyanu2507 wants to merge 1 commit into
PyMySQL:mainfrom
gyanu2507:password-utf8

Conversation

@gyanu2507

Copy link
Copy Markdown

Fixes #1252.

Connection still encoded string passwords with latin1 even though the default charset has been utf-8 for a while. Bytes passwords are left alone.

This is a behavior change for passwords that aren't latin1, which I think is what you wanted for the next minor.

The connection charset has been utf-8 for a long time; latin1 was
still used for the password bytes.
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.

Change password encoding to utf-8

1 participant