Reputation: 16436
How do I convert a unicode string '05d1' to corresponding Unicode character '\u05d1' in python?
Upvotes: 2
Views: 146
Reputation: 363456
Convert string to codepoint (integer) first, and then it's just chr:
chr
>>> chr(int("05d1", 16)) 'ב'
Upvotes: 5