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

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

posted @ 2009-12-03 16:31  溪水云天  阅读(257)  评论(0编辑  收藏  举报