You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is nearly identical to the issue reported in #5 -- basically if there are unicode characters in data they'll break in the HTML output.
Here's the same example from that error report:
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tablib import Dataset
>>> data = [u'\xfc', u'\xfd']
>>> dataset = Dataset()
>>> dataset.append(data)
>>> dataset.dict
[[u'\xfc', u'\xfd']]
>>> dataset.csv
'\xc3\xbc,\xc3\xbd\r\n'
>>> dataset.html
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "*****/lib/python2.7/site-packages/tablib/formats/_html.py", line 44, in export_set
stream.writelines(str(page))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 16: ordinal not in range(128)
This project is in a bit of a crisis state — it's really useful, and I use regularly. However, I wrote it several years ago and haven't touched it since. In order to get the project into a stable state I'm closing all issues and pull requests to get a "fresh slate"
Don't take this as aggressive — it's just necessary for the project to make any progress any time soon (it's pretty clear the project is effectively unmaintained at the moment). Great things to come! Please watch the GitHub logs and feel free to re-open this discussion soon. I just need to really it into a good state first.
This is nearly identical to the issue reported in #5 -- basically if there are unicode characters in data they'll break in the HTML output.
Here's the same example from that error report:
Looks like this is because of cStringIO -- see this stackoverflow question: http://stackoverflow.com/questions/1817695/python-how-to-get-stringio-writelines-to-accept-unicode-string
The text was updated successfully, but these errors were encountered: