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