Trong nhóm có bác nào biết cách thao tác form nhâp tiếng việt khi gửi request trong spring mà không bị lỗi font chỉ mình với ,
cám ơn.
Spring mvc + hibernate
để lưu tiếng việt vào CSDL thì bạn có thể thêm chuỗi “?useUnicode=yes&characterEncoding=UTF-8” vào cuối chuỗi kết nối
Thử thêm 2 dòng này xem !
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding(“utf-8”);
response.setCharacterEncoding(“utf-8”);
…
}
oke, để mình thử xem sao, tks bạn nhiều