mysql:
设置相应的编码为utf8:
SET character_set_client = utf8;
SET character_set_results = utf8;
SET character_set_connection = utf8;
SET character_set_database = utf8;
SET character_set_server = utf8;
这样就完成了在已配置好的情况设置mysql字符编码。
java :action
response.setCharacterEncoding("UTF-8");