diff --git a/Wox.Infrastructure/ChineseToPinYin.cs b/Wox.Infrastructure/ChineseToPinYin.cs index 83cf44f650..8e0dc6e68e 100644 --- a/Wox.Infrastructure/ChineseToPinYin.cs +++ b/Wox.Infrastructure/ChineseToPinYin.cs @@ -77,6 +77,7 @@ namespace Wox.Infrastructure public static string ToPinYin(string txt) { txt = txt.Trim(); + txt = Microsoft.VisualBasic.Strings.StrConv(txt, Microsoft.VisualBasic.VbStrConv.SimplifiedChinese, 0); byte[] arr = new byte[2]; //每个汉字为2字节 StringBuilder result = new StringBuilder();//使用StringBuilder优化字符串连接 int charCode = 0; diff --git a/Wox.Infrastructure/Wox.Infrastructure.csproj b/Wox.Infrastructure/Wox.Infrastructure.csproj index c34ad3a0ce..3047e8d4db 100644 --- a/Wox.Infrastructure/Wox.Infrastructure.csproj +++ b/Wox.Infrastructure/Wox.Infrastructure.csproj @@ -32,6 +32,7 @@ 4 + ..\packages\Newtonsoft.Json.5.0.8\lib\net35\Newtonsoft.Json.dll