1 问题描述
表输出的时候 数据库显示中文乱码,但是spoon日志显示正确
2 解决办法
编辑数据库的连接,加入下边的选项
characterEncoding utf8
ktr的文件里边是多了这个配置
<connection>
<name>sss</name>
<server>192.168.1.151</server>
<type>MYSQL</type>
<access>Native</access>
<database>test</database>
<port>3706</port>
<username>root</username>
<password>Encrypted 2be98afc85bd6939ef90ebd68fec3fd89</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute>
<code>EXTRA_OPTION_MYSQL.characterEncoding</code>
<attribute>utf8</attribute>
</attribute>
这个里边多了EXTRA_OPTION_MYSQL.characterEncoding 这个参数