Detec nonascii in a string

Gerard Flanagan grflanagan at yahoo.co.uk
Thu Feb 23 10:55:39 EST 2006


Sebastian Bassi wrote:
> Hello,
>
> How do I detect non-ascii letters in a string?
> I want to detect the condition that a string have a letter that is not
> here: string.ascii_letters
>
> Best regards,
> SB.
>
> --
> Bioinformatics news: http://www.bioinformatica.info
> Lriser: http://www.linspire.com/lraiser_success.php?serial=318


see:

http://groups.google.com/group/comp.lang.python/browse_thread/thread/9011319757576f45/

eg.  ord(max(string)) < 128     ( Scott David Daniels ).


Gerard




More information about the Python-list mailing list