Skip to content

Instantly share code, notes, and snippets.

@okuniw
Last active December 20, 2015 13:09
Show Gist options
  • Save okuniw/6137106 to your computer and use it in GitHub Desktop.
Save okuniw/6137106 to your computer and use it in GitHub Desktop.
Prepare url parameter value as big5 encoding
string strBig5Param = HttpUtility.UrlEncode(_strBody, Encoding.GetEncoding("big5"))
string strRequestUrl = "http://foo/bar?a=XXX&b=" + strBig5Param
// ... next: new WebRequest(strRequestUrl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment