R: R: unicode to string conversion

Skip Montanaro skip at pobox.com
Fri May 9 11:35:35 EDT 2003


    Luca> I would like s to be:

    >>>> s
    Luca> 'questa è bella'

    Luca> not

    >>>> s
    Luca> 'questa \x8a bella'

When you are at the interpreter prompt and just type a variable name, its
repr() is printed.  You want the str() printed.  Using 

    print s

does that.

Skip





More information about the Python-list mailing list