rbcollins123 / prettytable

Automatically exported from code.google.com/p/prettytable
Other
0 stars 0 forks source link

Cannot print unicode characters, for example: degree symbol ° #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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