Unicode

X

xyz

Hello All,

I want to display a character from unicode.
for eg: "0951" is the code for the character "om" (devanagari script)
if i give the input I have to get the corresponding character
I an using linux platform to compile the program.

Could anyone please help me...Thanks...
 
M

Michael DOUBEZ

J

Juha Nieminen

xyz said:
I want to display a character from unicode.

Then you have to decide in which encoding you are going to print it
out. "Unicode" is just a standardized mapping between numerical values
and characters. How those numerical values are encoded is a different
question, and there exist several differing encodings (and printing out
the raw bytes of the numerical unicode value is *not* a standardized
encoding, nor probably supported by anything). UTF-8 is the most
popular, but not the only encoding for unicode characters.

I have found this UTF library to be versatile, relatively light-weight
(at least in that it doesn't make your program 10 MB in size), portable
and relatively easy to use:

http://utfcpp.sourceforge.net/
 

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

Similar Threads

Unicode 3
C basic query 1
Converting EBCDIC to Unicode 3
Can someone pls help me with a little algorithm script 1
Blue J Ciphertext Program 2
Help with code 0
Help in hangman game 1
Unicode 20

Members online

Forum statistics

Threads
474,160
Messages
2,570,890
Members
47,423
Latest member
henerygril

Latest Threads

Top