關於phoenixframe建立用例時中文亂碼問題的解決方案

找到phoenix_web目錄下的jdbc.properties,打開,並找到:mysql

jdbc.url = jdbc\:mysql\://localhost\:3306/phoenix_guiweb

在後面添加:?useUnicode=true&characterEncoding=utf-8sql

添加完成後,完整以下:數據庫

jdbc.url = jdbc\:mysql\://localhost\:3306/phoenix_gui?useUnicode=true&characterEncoding=utf-8ui

 

另,建立數據庫時,最好選擇字符集編碼爲:編碼

 utf8 -- UTF-8 Unicodeurl

相關文章
相關標籤/搜索