great!
i have test the case.
i have get the correct string.
it is all UNICODE.
and i have found a "bug" in the connect pool configuration which the tomcat-dos indicate.
the following snip code is no effect about the characterEncoding,i use it with the struts.i have waste much time to test the problem with the "bug" code.
<Resource name="jdbc/zzksDB" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/zzksDB">
<parameter>
<name>username</name>
<value>dbusername</value>
</parameter>
<parameter>
<name>password</name>
<value>dbpassword</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/zzks</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>200</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>200113</value>
</parameter>
<parameter>
<name>useUnicode</name>
<value>true</value>
</parameter>
<parameter>
<name>characterEncoding</name>
<value>UTF-8</value>
</parameter>
</ResourceParams>
if i use the url with
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/zzks?useUnicode=true&characterEncoding=UTF-8</value>
</parameter>
then the tomcat can't start.
my tomcat is 5.0.jdk 1.4.2 win2000(chinese)
mysql 4.1.1
regards
zhu1230