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

Flyers - encoding errors #3

Open
kgrons opened this issue May 17, 2016 · 2 comments
Open

Flyers - encoding errors #3

kgrons opened this issue May 17, 2016 · 2 comments

Comments

@kgrons
Copy link
Member

kgrons commented May 17, 2016

The script gets caught on extended ASCII characters from the OPAS titles, requiring us to manually modify the source CSV.

We need to modify the encoding parameters in our script so it does not get hung up on those characters.

@kgrons
Copy link
Member Author

kgrons commented May 18, 2016

Interim fix:

  • when exporting from performance database, save the CSV with UTF-8 encoding

@peppage
Copy link

peppage commented May 22, 2016

I think you should take a look at normalizing the string. https://docs.python.org/3.5/library/unicodedata.html

For example:

unicodedata.normalize('NFKD', stringVar).encode('ascii', 'ignore')

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

No branches or pull requests

2 participants