Hello,
Clover uses ISO-8859-1 charset by default . On XlsDataWriter or on DBOutput table you can set charset directly, but MySqlDataWriter can only work with default charset. You can change it in defaultProperties file, which should be located in CLOVER_HOME/lib/lib/cloveretl.engine.jar/org/jetel/data directory.
I tried your changes but I am unable to build a new jar file (I did it with gnome graphical arch tool but it didn’t give me nothing good).
I think it is more a date matter.
I changed the FMT file from date to string and did the same on the MySql table.
The insert run correctly on this field but drop in error (err) on the next date of the xls file.
This test let me think that is not a charset problem on MySql but more a date format passed between clover and MySql that is not the proper date format for MySql.
Do you know how can I see the date format passed to MySql ?
Hello,
Date column must be passed to MysqlDataWriter in proper date format for MySql.
You can specify date values using any of a common set of formats:
As a string in either ‘YYYY-MM-DD’ or ‘YY-MM-DD’ format. A “relaxed” syntax is allowed here, too. For example, ‘98-12-31’, ‘98.12.31’, ‘98/12/31’, and ‘98@12@31’ are equivalent.
As a string with no delimiters in either ‘YYYYMMDD’ or ‘YYMMDD’ format, provided that the string makes sense as a date. For example, ‘19970523’ and ‘970523’ are interpreted as ‘1997-05-23’, but ‘971332’ is illegal (it has nonsensical month and day parts) and becomes ‘0000-00-00’.
As a number in either YYYYMMDD or YYMMDD format, provided that the number makes sense as a date. For example, 19830905 and 830905 are interpreted as ‘1983-09-05’.
Hello,
there is a part of sample graph. It could help you with your problem.
Xls file metadata. This format of date (dd-MM-yy) equals format of date in xls file (You change this format according to your format of date in xls file).
In addition to XLS Data Reader and MySql Writer you use Simple Copy component. It is used only for converting input format of date (xls file) to output format of date (MySql).