check for ascii characters python code example Example: python is ascii 'mystring'.isascii() # true 'mÿstring'.isascii() #false