paraparser.py: fix _greekConvert for 2.7 py33
authorrobin
Wed, 04 Dec 2013 16:57:09 +0000
branchpy33
changeset 3900 056aff5b1a58
parent 3899 58aa34ad7b37
child 3901 8ec6fb062dee
paraparser.py: fix _greekConvert for 2.7
src/reportlab/platypus/paraparser.py
--- a/src/reportlab/platypus/paraparser.py	Wed Dec 04 16:54:31 2013 +0000
+++ b/src/reportlab/platypus/paraparser.py	Wed Dec 04 16:57:09 2013 +0000
@@ -507,7 +507,7 @@
                 if isPy3:
                     u = chr(v)
                 else:
-                    u = chr(v).encode('utf8')
+                    u = unichr(v).encode('utf8')
             _greek2Utf8[chr(k)] = u
     return ''.join(map(_greek2Utf8.__getitem__,data))