Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
C# gbk 编码
//使用之前:
//项目 -> 添加引用 -> 搜索 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
You can’t perform that action at this time.