jsp傳中文字變成亂碼了 2017-11-22 直接輸出 request 到的資料,中文字的部份會變成亂碼,請參考下面的範例: <% ModelName=request.getParameter("ModelName"); ModelName=new String(ModelName.getBytes("iso-8859-1")); out.println(ModelName); %> 經測試,醬子就可以囉。 Java 相關文章 Form is submitted when I click on the button in form. How to avoid this? 2017-08-152017-08-16 Declaring functions in JSP? 2017-08-02 How to import constants in a JSP page 2017-11-08 上一篇文章下一篇文章