Problem with what raw_input() returns

EP EP at zomething.com
Tue Jan 13 04:01:02 CET 2004


What do you get if you

 >>>  print one

?



At 05:46 PM 1/12/2004 -0800, sebb wrote:
>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
>--
>http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list