• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » in mysql data truncated after \ in fields imported from csv

#1 2009-02-24 18:10:29

Jerome Demolliens
Guest

in mysql data truncated after \ in fields imported from csv

Hi,

In a job i am importing data from a cvs file into a mysql table. When I run the job (without error) and look after at the data in the mysql table, I find that the data imported from one of the cvs field is truncated in mysql row every time there is a \ sign.
The format of the cvs file is:
• Separator: semicolon (;)
• Field delimiter: double quotation marks (")
• Double quotation marks in data fields are escaped (\")
• UTF-8 encoding
so on the input side when I have edited the input file metadata I have chosen:
field separator: ;
row separator : \n
escape char settings : cvs --> escape char \" and text enclosure \"

Is there anything wrong in my parameters ? How can I import all the data ?

Thanks in advance for your help.

Cheers.

Jérôme

#2 2009-02-25 03:24:24

shong
Talend team
Registered: 2007-08-29
Posts: 10289
Website

Re: in mysql data truncated after \ in fields imported from csv

Hello

Please show us an example of your data and what are your expected result?

Best regards

           shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-02-25 16:14:04

Jerome Demolliens
Guest

Re: in mysql data truncated after \ in fields imported from csv

Hi,

Here a sample of the data extract from the cvs file:
\Le Canto del Gallo\" se trouve sur les hauteurs de Ranedo de Curueñon

and the result in mysql table:
\

Best regards

Jérôme

#4 2009-02-25 16:18:36

Guillaume.G
Member
Registered: 2009-02-04
Posts: 29

Re: in mysql data truncated after \ in fields imported from csv

Hi,

try to use \\" instead of \"

Offline

#5 2009-02-25 17:47:40

Jerome Demolliens
Guest

Re: in mysql data truncated after \ in fields imported from csv

Hi,

If I use "//" instead of "/"" as text enclosure nothing is imported from the csv file.

Jérôme

#6 2009-02-25 17:52:48

Jerome Demolliens
Guest

Re: in mysql data truncated after \ in fields imported from csv

Hi,

Sorry I have tried now using "\\" as the escape char and that works !

thanks for your help.

Best regards

Jérôme

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » in mysql data truncated after \ in fields imported from csv

Board footer

Powered by FluxBB