Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handling for non-ASCII characters in error messages #85

Merged
merged 1 commit into from
Jan 5, 2020

Conversation

movermeyer
Copy link
Collaborator

@movermeyer movermeyer commented Jan 4, 2020

In cases where the unexpected character was not ASCII, the error message formatting was misbehaving.

For Python 3, we'll print the character as always (now accepting Unicode characters)
For Python 2, we will simply not include the character in the error message if it's not an ASCII character.

Fixes #84

@movermeyer movermeyer mentioned this pull request Jan 4, 2020
@movermeyer movermeyer changed the title Add handling for non-ASCII characters in error messages WIP: Add handling for non-ASCII characters in error messages Jan 4, 2020
@movermeyer movermeyer force-pushed the non_ascii_support_for_error_messages branch from 68f58b8 to efbea4c Compare January 5, 2020 13:19
@movermeyer movermeyer changed the title WIP: Add handling for non-ASCII characters in error messages Add handling for non-ASCII characters in error messages Jan 5, 2020
@movermeyer movermeyer force-pushed the non_ascii_support_for_error_messages branch from efbea4c to c19fc99 Compare January 5, 2020 15:52
@movermeyer movermeyer merged commit f21596e into master Jan 5, 2020
@olliemath olliemath mentioned this pull request Feb 5, 2020
@movermeyer movermeyer deleted the non_ascii_support_for_error_messages branch June 29, 2021 05:43
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.

Bad unicode characters not handled correctly
1 participant