#changes non_ascii chars to unicode and vice versa text = 'Pythön is interesting' print(ascii(text)) #prints 'Pythxf6n is interesting'