use UTF-8 and you needn't change the charset.

解决方案 »

  1.   

    UTF-8,我知道啊!但我就是想通过javascript改变编码方式而已.只要告诉我怎么写.分就送上
      

  2.   

    <p>希望通过一个按钮改变浏览器的编码方式</p>这样写<br><input type=button value='utf-8' onclick='document.charset=this.value'>
    <input type=button value='gbk' onclick='document.charset=this.value'>
    <input type=button value='big5' onclick='document.charset=this.value'>
    只要设置document.charset为你需要的语言类型即可。
    但是实际内容并没有变化,不清楚这样做的意义何在。模拟浏览器的编码选择?
      

  3.   

    楼上的,你学过struts没有?
    学过了你就知道了啊