Created
October 16, 2018 14:41
-
-
Save diaolizhi/fe1e0ce5d4de9b2f1e75db5ab802172f to your computer and use it in GitHub Desktop.
C# gbk 编码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//使用之前: | |
//项目 -> 添加引用 -> 搜索 System.web 添加 | |
string str = System.Web.HttpUtility.UrlEncode("机械键盘", System.Text.Encoding.GetEncoding("GB2312")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment