Closed tsorman closed 7 years ago
Well I managed to get around the problem by accessing textpos.py on the library and removing the .decode('string_escape')
Again Python is not my strong point but if that is not affecting the performance, should it be on the next update?
For some reason you have a previous version of textpos. You should pull the latest code and reinstall, the textpos file has been amended as shown here https://github.com/PiSupply/PaPiRus/pull/112/files
When I am trying to add a UTF character when using the PapirusTextPos() I get a decoding error.
The code is:
and the error is :
I tried changing the string to "Hello" and it worked fine.
Note that I am not that strong in Python so I might be doing something wrong here but the error appears to be on the textpos.py
Since the PapirusText() works fine with UTF characters, ( I managed to display some Japanese text) then I should think that the behavior between the two classes should be the same.