Problem with what raw_input() returns
sebb
sebb at linuxcult.com
Mon Jan 12 20:46:26 EST 2004
If I do the following script:
# -*- coding: cp1252 -*-
one = "éé"
two = one.replace("é","a")
print two # it prints aa as I expected
But with the following script:
# -*- coding: cp1252 -*-
one = raw_input() # When I run the script, I type éé
two = one.replace("é","a")
print two # it still prints éé and I want it to print aa
Can someone help me with that problem?
Thanks
More information about the Python-list
mailing list