Detec nonascii in a string

Sebastian Bassi sbassi at gmail.com
Thu Feb 23 11:39:57 EST 2006


On 2/23/06, Diez B. Roggisch <deets at nospam.web.de> wrote:
> "äöü".decode("ascii")
> should do the trick -- you get an UnicodeError when there is anything ascii
> can't encode.

Thank you. This is good enought for me.
Best regards,
SB.

--
Bioinformatics news: http://www.bioinformatica.info
Lriser: http://www.linspire.com/lraiser_success.php?serial=318



More information about the Python-list mailing list