看板 [ java ]
討論串[J2SE] JTextField 與 MySQL 之間的問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者qrtt1 (愚人)時間19年前 (2007/02/03 11:31), 編輯資訊
0
0
0
內容預覽:
useUnicode=true&characterEncoding=utf8. 用 useUnicode=true&characterEncoding=utf8 :D. btw. 沒看到他 mysql 的設定,預設是 latin1. --. 發信站: 批踢踢實業坊(ptt.cc). ◆

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者willieliao (Willie Liao)時間19年前 (2007/02/03 11:15), 編輯資訊
0
0
0
內容預覽:
Add useUnicode=true&characterEncoding=utf8. Also, if you are using JSP, make the page encoding to UTF-8. Willie. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 69

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者NothingGood (沒好事)時間19年前 (2007/02/02 18:39), 編輯資訊
0
0
0
內容預覽:
現有一個 JTextFiled 可以輸入文字,輸入完後儲存至資料庫中. 然而我儲存至資料庫後會變成一堆問號 (因為輸入的是中文). 在命令提示字元底下,我測試 insert 也是用中文字. 就可以正常顯示. 曾經試過. String s = new String(JTextField.getText
(還有22個字)
首頁
上一頁
1
下一頁
尾頁