读书人

Websphere下中文乱码有关问题

发布时间: 2013-07-04 11:45:40 作者: rapoo

Websphere下中文乱码问题
在英文系统WAS下部署应用程序后,通过页面上传的包含中文字符的文件到系统后,无论如何存入的数据库都为乱码,后来发现是WAS不支持这些中文字符集,通过多方查找,最后解决方法如下:

1.Log in https://localhost:9043/ibm/console/

2.Go to Application servers > server1 > Java and Process Management > Process Definition > Java Virtual Machine

3.Add “-Dfile.encoding=GBK -Ddefault.client.encoding=GBK” to the value of Generic JVM arguments

4.Save the changes, and restart services of IBM WebSphere Application Server

读书人网 >Web前端

热点推荐