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FNisqhFQm9uVf2jasXLiqZqDZITVYxRfy0Wv2vMDbvZzzhdBpwyOTG1cIruSG5rZr2j3hMcSabmy7FW8NVyZvwiuNADS0rmwr7lJBGwPwrl8cZ1YudGcdz2Ht0+N2+/io3RYPj+aFTo/Qn7rsx6X4TgG4zQhA44LWIgjAw5PeP3aXiWbJPeU1PksT7wtnbq08ilnuN2vl6lw7udDs8OTGF8JUn+P2LZc6ByNrYr25peX1GSMAQgvrGVk7naQ2puv0HbSU25oRxgK23V6zQmddvtiZrT096B0K82ieCEZZdEu/OupU0rApINO6YcSsA6tABqwBDBWAS1qL0+zTQ+C4nKZM9HLu7/2Ny5KzaoaZdeZWv+rR94XzbjVKQ2ztZwrB6kafSW5iITiSu6QQeu6noZlssVvkmSK9FaMEQBvfGM2uDtGHP+I8jamJTXRDYTqDcuuH7cODLaxnzBpW5fH+dayZTVbooE2NYLf3Nm/bhwc9M0amRzhirUatoUnPU85SeznnnaW6uLi1OM0+aYvOUpnoSTk1/qIsuatmiNme3Grh4pDUbdZ9t56Zrz6fW92ANDciZXZCIUjJDTfr8i2XOAfdmtCVcxbp7Zj1UxBLGtoAXIpz7A5wZyAAACbu6X+AOwMBANChEYNH8DVQAABPQQAAADwFAQAA8BQEAADAUxAAAABPQQAAADwFAQAA8BQEAADAUxAAAABPQQAAADwFAQAA8BQEAADAUxAAAABP+X8ldE1/TmTjswAAAABJRU5ErkJggg==" alt="" />
class="code_img_closed" src="/Upload/Images/2015022702/0015B68B3C38AA5B.gif" alt="" />logs_code_hide('faebbebe-9cac-4b0d-ac86-1f3ab0e34438',event)" src="/Upload/Images/2015022702/2B1B950FA3DF188F.gif" alt="" />1 void Main() 2 { 3 string rawUrl = "http://www.demo.com?key=测试"; 4 string urlEncode = System.Web.HttpUtility.UrlEncode(rawUrl); 5 urlEncode.Dump(); 6 }View Code
HtmlEncode
是将html源文件中不容许出现的字符进行编码,通常是编码以下字符:"<"、">"、"&"、"""、"'"等。
pptps9oU6pptqsz0Uu+f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nOiVVsDt9vZcoR9lHKesXwCX40zLeOiKKVOOyi1Zfaox9nSNGgrd6sykCk/2dgLaWXa9//cDLnHKiWpnyux7WmlHa5wld/X+cWSXzphln9z1AFjrw5yLyFo+xnISqpEyRtHDwwOxOszK2LtlTpY5KffxDvWY2iX3YWfGHJ9czbma9i0Q8yy7TsE6rpxNccrIapdrxQoprxC5nzHLV4jcfYuoHdYsmEdftY6LsfZhCOBiLr1bxpL7sJjl0+7vqbH51LFjho+cBavnMnoOuovJhGSC66qoY8/2VCtEgQu04kqWT5O73fgls2zk8aP2zkOtOu0SgDvnPueKaOprZ3twrVUrJmdfBkNJusPlyHIfGfOqEfdB6sOt+sV2x0zo78yYaic1OhbtLFu/beXxb4d+1AqdjCFd1dbp3W7U4+NSrWh3gjw8Pk6J3DWcd/7PNMtaJx+fHLmP4XXu2VaED+NOGitTJS2dcy4IAAyYdkFV9GAkBbzRQMr+2kRZj2/CNXm3T4k1u+rxl5+ZuU7I/fVc/7TfI6g5Z3k+B64nM7KensAtw4vDXpv3j2fvyHoK4MTjPhe0ciYe887VmXnlfv1F5GI9PYFbBrnfMEbmY22n8VdILZC9AHCD3AEAAgS5AwAECHIHAAgQ5A4AECDIHQAgQJA7AECAIHcAgABB7gAAAYLcAQACBLkDAAQIcgcACBDkDgAQIMgdACBAkDsAQIAgdwCAAPl/j95O8QbrdPQAAAAASUVORK5CYII=" alt="" />
1 void Main() 2 { 3 string rawTxt = "会被转义的字符:< > & \" '"; 4 string htmlEncode = System.Web.HttpUtility.HtmlEncode(rawTxt); 5 htmlEncode.Dump(); 6 }View Code