Closed fidelaznar closed 7 years ago
@fidelaznar, which Python version were you using?
Python 2.7.13
It is a problem of the CSV module in Python2. Are you sure your fix would fix the unicode problem in Pyhton2?
I'm considering using another CSV writer/reader such as Pandas (for various reasons including performance and this). But it's a big dependency. Let me know your opinion on this.
With this lines I've compiled a lot of tables without a problem using Unicode Chars. If the input is Unicode It should work.
Also see #21
@fidelaznar, please check pantable v0.11 in #25 fixes your problem. Thanks.
The following table could not be compiled:
Solution: force UTF8 encoding. Add in line 60 of "pantable.py" the following lines: reload(sys) sys.setdefaultencoding('utf8')