Convert unicode character to corresponding text?
I want to know is there any way to convert unicode char to its text rather than 开发者_如何学JAVAusing static map ?
e.g. $ -> Dollar Sign , A - >Latin Capital Letter A
I wish to do exactly same as charmap.exe utility.
Thanks in advance...
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.
精彩评论