I am reading a json file with python 3.5. In this file it have characters like "í". I would like to print it in that format. How do I make the below code print the character correctly?
t = 'í'
print(t)
Traceback (most recent call last):
File "test.py", line 15, in <module>
print(t)
UnicodeEncodeError: 'ascii' codec can't encode character '\xed' in position 0: ordinal not in range(128)