I got a warning during building some legacy code:
'System.Web.HttpUtility.UrlEncodeUnicode(string)' is obsolete: '"This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncode(String)."'
Is it safe to replace HttpUtility.UrlEncodeUnicode(string) with HttpUtility.UrlEncode(string)? Do both methods produce identical results for any string?
If not, what is the preferred alternative?
 
     
    