unity 解密加密 未编码的url中文参数

WWW.EscapeURL(string url);
WWW.EscapeURL(string url,Encoding e);

WWW.UnEscapeURL(string url);
WWW.UnEscapeURL(string url,Encoding e);


string str = WWW.UnEscapeURL("%E7%8C%B4%E5%B9%B4%E9%A9%AC%E6%9C%88",System.Text.Encoding.GetEncoding("utf-8"));//url 编码 转中文
string str =WWW.EscapeURL("猴年马月");//中文转url编码

原文:URL编码的Unity实现_unity url 中文_VirtualCreator的博客-CSDN博客

猜你喜欢

转载自blog.csdn.net/qq_37524903/article/details/131292048
今日推荐