voc icon indicating copy to clipboard operation
voc copied to clipboard

Problems with non-ascii characters in __str__() and __repr__() functions

Open gEt-rIgHt-jR opened this issue 8 years ago • 2 comments

__str__() , __repr__() functions don't work properly with non-ascii characters.

When I run this code:

s = "Ç"
print(s.__str__())
print(s.__repr__())

In Python I get:

Ç
'Ç'

But in VOC I get:

Ç
'Ç'

It is giving me problems while implementing ascii() function under Python.java

gEt-rIgHt-jR avatar Mar 07 '17 14:03 gEt-rIgHt-jR

@gEt-rIgHt-jR I am not getting that error. Can you try that again ? and with other non-ascii characters . Because I tried Ç , ¢ , ¥ ,© and all seem to be working as expected . Are there any other issues here?

dibyadas avatar Mar 07 '17 17:03 dibyadas

@dibyadas On windows I am getting that output, on Ubuntu I am getting correct output.

gEt-rIgHt-jR avatar Mar 09 '17 17:03 gEt-rIgHt-jR