2008年4月16日

Sun Java System Web Server (Glassfish) Parameter CharacterEncoding

sun-web.xml File Internationalization Elements

use parameter-encoding default-charset to do request.setCharacterEncoding("UTF-8");
edit sun-web.xml File

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
<locale-charset-info>
<locale-charset-map locale="" charset="UTF-8" />
<parameter-encoding default-charset="UTF-8" />
</locale-charset-info>
</sun-web-app>

1 則留言:

hulag 提到...

Olá! I Wangbu. Estou das Filipinas. Você tem um belo blog. Estou tão feliz de visita.

網誌存檔