.net C#实现 中文转Unicode、Unicode转中文 及与js对应关系

中文转Unicode:HttpUtility.UrlEncodeUnicode(string str); 
转换后中文格式:"%uxxxx"  举例:"柳_abc123"  转换结果是:"%u67f3_abc123"

Unicode转中文1:HttpUtility.UrlDecode(string str);
str格式:"%uxxxx" ,举例:"%u67f3_abc123"

Unicode转中文2:Regex.Unescape(string str);
str格式:"uxxxx" ,举例:"u67f3_abc123"

参考:http://www.yongfa365.com/Item/Unicode-Chinese-UrlEncodeUnicode-Unescape.html

原文地址:https://www.cnblogs.com/ycdx2001/p/3733307.html