kettle连接设置字符编码
在使用kettle处理表输入,表输出的时候,会因为kettle连接数据库设置的字符编码格式不对,导致字符乱码。
在命名参数栏可以填写上一下所有数据:
characterEncoding utf8 useUnicode true
zeroDateTimeBehavior
convertToNull
transformedBitIsBoolean
true
useSSL
false
以上参数就如同数据库连接时连接路径后加的参数:
db.master.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&useSSL=false
然后在数据库连接-高级里添加:
set names utf8;
下面一步,文本打开spoon.bat,找到:
set OPT=%OPT% %PENTAHO_DI_JAVA_OPTIONS%
在这后面加上:
"-Dfile.encoding=UTF-8"
搜索
复制
Original: https://www.cnblogs.com/xxhxs-21/p/15885707.html
Author: 花祈梦
Title: Kettl转换运行报错:Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ‘=’
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/588624/
转载文章受原作者版权保护。转载请注明原作者出处!