asp.net中cookie中文乱码的解决

写cookie时 string t =HttpUtility.UrlEncode(要写入到cookies的中文值);

读cookie时 //读取cookies时 t = HttpUtility.UrlDecode(teacher_name);