I'm reading a file with Python that contains exactly the following line
à è ì ò ù ç @ \U0001F914
where \U0001F914
is the unicode code for an emoticon.
if interpret the string as
string=string.decode('utf-8')
I get:
à è ì ò ù ç @ \U0001F914
while if I interpret as following:
string=string.decode('unicode-escape')
I get:
à è ì ò ù ç @
How can I print instead:
à è ì ò ù ç @
I'm a beginner, so pardon me if my question is stupid, but I can't get it out.
Thanks in advance.