python how test if an input string contains non ascii characters code example Example: python is ascii 'mystring'.isascii() # true 'mÿstring'.isascii() #false