2013.06.08 追è¨ï¼JDBC æ¥ç¶æåå㧠characterEncoding / connectionCollation ãæå®ããã¨æã£ãéãã®æåããã¦ãããªããããªã®ã§ãå¥ã®æ¹æ³ (å¤åãããæ£ããæ¹æ³) ãè¨è¼ãã¾ããã Unicode ã«ãããããã㪠æãã®çµµæåããããã Unicode 㮠追å é¢ ã®æåãJava ã§è¨ãã°ãµãã²ã¼ããã¢ã§ã®è¡¨ç¾ãå¿ è¦ã¨ãªãæåããJDBC çµç±ã§ UTF-8 ã¨ã³ã³ã¼ãã£ã³ã°ã㦠MySQL ã®ãã¼ãã«ã»ã«ã©ã ã«æ ¼ç´ãããã¨ããã¨ã以ä¸ã®ä¾å¤ãçºçãããã¨ãããã¾ãã Caused by: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\x81 h...' for column 'col_name' at row 1 at com.mysql.jdbc.S
{{#tags}}- {{label}}
{{/tags}}