vb.net实现繁简转换
Dim strSimplifiedChinese, strTraditionalChinese As String
strSimplifiedChinese = "我是中国人!"
strTraditionalChinese = StrConv(strSimplifiedChinese, VbStrConv.TraditionalChinese) '简转繁
Console.Write(strTraditionalChinese)
strSimplifiedChinese = StrConv(strTraditionalChinese, VbStrConv.SimplifiedChinese) '繁转简
Console.Write(strSimplifiedChinese)
strSimplifiedChinese = "我是中国人!"
strTraditionalChinese = StrConv(strSimplifiedChinese, VbStrConv.TraditionalChinese) '简转繁
Console.Write(strTraditionalChinese)
strSimplifiedChinese = StrConv(strTraditionalChinese, VbStrConv.SimplifiedChinese) '繁转简
Console.Write(strSimplifiedChinese)
申明
非源创博文中的内容均收集自网上,若有侵权之处,请及时联络,我会在第一时间内删除.再次说声抱歉!!!
博文欢迎转载,但请给出原文连接。