???JSP??MySQL?????????????????
???????????? ???????[ 2016/1/28 10:10:18 ] ????????????? MySQL
????????????????? ????????????????? ???????????£? ???????????.
??????????????????????????.
????1. JSP
??????????????????JSP????????????:
??????Eclipse-window->preferences. ??????????.
??????????? ????? JSP??????? ?????????????.
????<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
????<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
????????????????? ????????????????????????????? ????????????
???????????????UTF-8???????????.
????2. Servlet
?????? doGet/doPost ?У? ????????????????
????// ?????????????????????UTF-8????
????request.setCharacterEncoding("UTF-8");
????tip: ?????????? filter??????????????.
????3. JDBC-URL
??????????????JDBC-URL?????????? ???????????????.
????jdbc:mysql://localhost/javaweb?useUnicode=true&characterEncoding=utf-8
????4. MySQL
????????????????? charset=utf8?? collation=utf8_general_ci
????????????????? charset=utf8?? collation=utf8_general_ci
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11