转码解码代码

js代码中:

转码:encodeURIComponent、encodeURI

 data.des = encodeURIComponent(UE.getEditor('editor').getContent());

解码:decodeURI、decodeURIComponent

页面当中解码:

<div class="view-list-pro1">@(Html.Raw(HttpUtility.UrlDecode(item.Introduction.ToString())))</div>

页面转码

HttpUtility.UrlEncode
原文地址:https://www.cnblogs.com/wanliyuan/p/4539221.html