tags:

views:

39

answers:

1

Hi All,

I want to know is there any way to convert unicode char to its text rather than using static map ?

e.g. $ -> Dollar Sign , A - >Latin Capital Letter A

I wish to do exactly same as charmap.exe utility.

Thanks in advance...

+2  A: 

The easiest way that I know to do something like that is to use ICU. I think that the function u_charName() is what you are looking for. I'm not a VC++ expert but it looks like you could use something in the System.Globalization namespace if you are using .NET. I would assume that the National Language Support (NLS) package has something similar buried in one of the functions.

D.Shawley