Is there a string function to trim all non-ascii characters out of a string

silverburgh.meryl at gmail.com silverburgh.meryl at gmail.com
Mon Dec 31 03:20:16 EST 2007


Hi,

Is there a string function to trim all non-ascii characters out of a
string?
Let say I have a string in python (which is utf8 encoded), is there a
python function which I can convert that to a string which composed of
only ascii characters?

Thank you.



More information about the Python-list mailing list