python - How to print the character from a variable with unicode string? -


print u'\u0d05' a='\u0d05' print 

print gives \u0d05 out put need character represents output,which അ

the \u escape not meaningful inside non-unicode string. need a = u'\u0d05'.

if you're saying you're getting string somewhere else , need interpret unicode escapes in it, print a.decode('unicode-escape')


Comments