在 .Net 中找出 Unicode 字符名称 [英] Finding out Unicode character name in .Net

查看:22
本文介绍了在 .Net 中找出 Unicode 字符名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.Net 中有没有办法找出某个字符的 Unicode 名称是什么?

Is there a way in .Net to find out, what Unicode name certain character has?

如果没有,有没有可以做到这一点的图书馆?

If not, is there a library that can do this?

推荐答案

现在比以往任何时候都容易,因为 nuget 中有一个名为 Unicode 信息

It's easier than ever now, as there's a package in nuget named Unicode Information

有了这个,你可以调用:

With this, you can just call:

UnicodeInfo.GetName(character)

这篇关于在 .Net 中找出 Unicode 字符名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆