麥克斯做個不宅的工程師

Maxi’s idiotic programming.

Encoding Error When Passing Value in Url

Title: 使用URL傳參數出現亂碼

Use the following to solve the problem.
HttpUtility.UrlEncode()/UrlDecode()
And this method save you from some XSS attacks too ^_^

用下列方法就編碼可以
HttpUtility.UrlEncode()/UrlDecode()
這會同時避開某部份XSS攻擊

September 28, 2009 , Monday - Posted by maxi326 | Programming | , , , , | No Comments Yet

No comments yet.

Leave a comment

You must be logged in to post a comment.