string a = "Home家People人", c = "";
string b = System.Web.HttpUtility.UrlEncode(a, System.Text.Encoding.UTF8);
int j = 0;
for (int i = 0; i < b.Length; i++)
{
if (b[i] == '%')
{
c += "=";
j = i;
}
if (i - j < 3 && i - j > 0 && j !=0)
{
c += b[i].ToString().ToUpper();
}
else
{
if( b[i] !='%')
c += b[i];
}
}
Response.Write(c);
int jj = 0;
string d = "";
d = c.Replace("=", "%");
Response.Write("<hr>");
d = System.Web.HttpUtility.UrlDecode(d, System.Text.Encoding.UTF8);
Response.Write(d);