关于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

相关文章
相关标签/搜索