-
Notifications
You must be signed in to change notification settings - Fork 64
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 uploading DataFrames with non-ascii texts in Python 2 #1001
Conversation
Note: the test I have added fails also for Python 3 because it also checks that you can pass encoded attributes (as bytes string). |
So, to be clear: as a bonus point, we now support non only (unicode) strings such as |
Thanks! Let's put PR in the |
I would like to merge #974 first, to have some test before that. Also, we are going to have some conflicts and it would be easier to solve here than there |
Removing the |
# Conflicts: # cartoframes/data/dataset/registry/dataframe_dataset.py # test/data/dataset/test_dataset.py
Acceptance ok |
Closes #1000
The fix I propose here accumulates the csv data in unicode form and encodes it only at the end.
Attributes for non-ascii test can be passed as unicode or encoded as bytes, so that simple strings
'...'
containing utf-8 characters will work both in Python 2 and 3. Explicit unicode stringu'...'
will also work.