Robpol86 / terminaltables

Project no longer maintained.
https://github.com/matthewdeanmartin/terminaltables
MIT License
689 stars 70 forks source link

WindowsTable and WindowsDoubleTable causing exception #4

Closed pjcrosbie closed 8 years ago

pjcrosbie commented 9 years ago

Robpol

I'm a bit of newbie so this may be simple user error. However, on a Windows 7/64 with Anaconda python 3.4, I can only get AsciiTables to work. DoubleTable and other fancy tables fail with various encoding errors.

I installed terminaltables-1.1.1 via pip

Here is an example of the console output for example1.py

-------------------------- snip B:\python\anaconda3\envs\testTable\python.exe D:/wspace-git/_python/terminaltables/example1.py

Traceback (most recent call last): File "D:/wspace-git/_python/terminaltables/example1.py", line 19, in print(table.table) File "B:\python\anaconda3\envs\testTable\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u2554' in position 0: character maps to ----------------------- end snip

Any idea on what I may be missing?

Many thanks, Peter

Robpol86 commented 8 years ago

Can you try it with regular Python on Windows?