shyjupv / prettytable

Automatically exported from code.google.com/p/prettytable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot print unicode characters, for example: degree symbol °

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Assign a Unicode character
2. Insert it into a PrettyTable
3. Try to print it

What is the expected output? What do you see instead?
I expect degree symbol "°" to print, but instead it prints "°".

What version of the product are you using? On what operating system?
Using PrettyTables v0.7.2 on Python 2.7 using PyScripter.

Please provide any additional information below.
Try the following code and you will see:
from prettytable import PrettyTable
deg= u'\N{DEGREE SIGN}'
print "degree symbol goes here normally:" , deg
x = PrettyTable(["Title"])
x.add_row([deg])
print x



Original issue reported on code.google.com by cargocr...@gmail.com on 23 Oct 2014 at 8:53