开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜