我想做一个页面语言转换的功能,通过改变页面的ENCODE编码格式让同一网页可以用不同国家的语言进行显示,以下是我实现功能的代码:
    protected void Page_Load(object sender, EventArgs e)
    {
        string name=Request.QueryString["name"];
        if (name != null)
        {
            Encoding encode = Encoding.GetEncoding(name);
            Response.ContentEncoding = encode;
        }
    }
    //页面编码转换成中文gb2312
    protected void Button1_Click(object sender, EventArgs e)
    {        string path = Request.Path+"?name=gb2312";
        Response.Redirect(path);
    }
    //页面编码转换成日文shift-JIS
    protected void Button2_Click(object sender, EventArgs e)
    {
        string path = Request.Path + "?name=shift-JIS";
        Response.Redirect(path);
    }
能进行转换,但是我转换的是日文,结果出乱码,转换回来就没事,请问我该怎么叫他能用各国语言显示我的页面而不出现乱码???