我的网络项目(Java EE)中需要波兰语字符。当我在数据库中插入一行时,一切正常,但是当我尝试在我的页面中插入行时。在数据库中我看到了?而是波兰语字符。我在我的页面中设置了 UTF-8 编码:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
和 glassfish-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">
<class-loader delegate="true"/>
<parameter-encoding default-charset="UTF-8" />
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
</jsp-config>
</glassfish-web-app>
我还需要在哪里设置一些东西?