1.經過sql直接轉換spring
select CONVERT(GROUP_CONCAT(XXX) USING utf8 from usertable;sql
2.經過程序轉換(注:本例用的是springmvc包裝並返回結果集)mvc
String srt2;
try {
srt2 = new String((byte[])entry.getValue(),"UTF-8");
hashmap.put(entry.getKey().toString(), srt2);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}spa