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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -