1. 程式人生 > >springmvc中處理頁面傳遞的亂碼

springmvc中處理頁面傳遞的亂碼

亂碼 key spa app string def get pre list

@RequestMapping("/search")
    public String searchItemList(String keyword, 
            @RequestParam(defaultValue="1") Integer page, Model model) throws Exception {
        keyword = new String(keyword.getBytes("iso-8859-1"), "utf-8");

springmvc中處理頁面傳遞的亂碼