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

Support for unicode characters in exports #144

Open
onejgordon opened this issue Jul 14, 2022 · 0 comments
Open

Support for unicode characters in exports #144

onejgordon opened this issue Jul 14, 2022 · 0 comments

Comments

@onejgordon
Copy link
Owner

Exports of user data currently fail when they include unicode characters, e.g.:

/reports.py", line 130, in writeData
2022-07-14 12:17:00.243 PDT
 csv.writer(self.gcs_file).writerow(ed)
2022-07-14 12:17:00.243 PDT
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

This may be a limitation of the cloudstorage library in python 2.7 (see https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/read-write-to-cloud-storage), but this is not confirmed.

We currently strip non-ascii characters to avoid problems with writing report data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant