今天找到新的一种简繁体转换方法,供家参考。
1.首先下载Visual Studio International Pack 1.0,地址是
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=44cac7f0-633b-477d-aed2-99aee642fc10
2.下载解压,安装CHTCHSConv.msi
3.参考C:\Program Files\Microsoft Visual Studio International Pack\Traditional Chinese to Simplified Chinese Conversion Library and Add-In Tool\ChineseConverter.dll
4.using Microsoft.International.Converters.TraditionalChineseToSimplifiedConverter;
5.简体转繁体string des = ChineseConverter.Convert(src, ChineseConversionDirection.TraditionalToSimplified);
6.繁体转简体string des = ChineseConverter.Convert(src, ChineseConversionDirection.SimplifiedToTraditional);
另外,这个工具包里面还有CHSPinYinConv.msi汉字拼音相关的,不妨一试。