char[] char1 = {(char)19967};
char[] char2 = {(char)19968};
int len1 = System.Text.Encoding.Default.GetBytes(char1).Length; //返回 len1 = 1
int len2 = System.Text.Encoding.Default.GetBytes(char2).Length; //返回 len2 = 2
半角与全角字符分界处 (char)19967 (char)19968
最新推荐文章于 2022-05-25 11:33:54 发布