Create Unicode object problem

K

Kathy

Hi!

Is there any way I can create a unicode object from the unicode code
itself.
I extract the code from a file and need to create a unicode object
that represents the corresponding character.

So what i get from reading my file is a string containing for example
the code 'u8c79' (Chinese character).

Help on this would be appreciated!

Kathy
 
I

Irmen de Jong

Kathy said:
Is there any way I can create a unicode object from the unicode code
itself.
I extract the code from a file and need to create a unicode object
that represents the corresponding character.

So what i get from reading my file is a string containing for example
the code 'u8c79' (Chinese character).
u'\u8c79'


--irmen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top