<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
1)如何在spring过滤器中启用UTF-16编码我需要从JSP中的文本框中获取UTF-16或UCS2字符到Spring Controller并插入Mysql。
2)如何将UTF-16数据插入mysql
我正在配置 JDBC URL
"?useUnicode=yes&characterEncoding=UTF-8"
我的列架构是
`utf16` varchar(150) CHARACTER SET utf16 COLLATE utf16_unicode_ci NOT NULL,