W
W
weranda2019-04-23 17:40:17
Python
weranda, 2019-04-23 17:40:17

How to convert unicode code to character?

Greetings
Something got confused with this unicode.
There is a character: ؄
Its unicode code is: U+0604
I'm trying to get a normal character (؄) from the U+0604 code, but something doesn't work out.
Please tell me the implementation in Python.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-04-23
@weranda

codepoint = 'U+0604'
char = chr(int(codepoint[2:], 16))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question