1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
357 views
by pradeepkumar-j-1408 (160 points)
edited by pradeepkumar-j-1408
I have comma separated message where the field values are enclosed with double quotes. My channel is throwing error where one of the field has double quotes as value. Please see the example field value

""SANGRADO Y DOLOR DESPUES DE UN LEGRADO" POCS"

I am getting error while setting the message

message.setNode("/", source.getNode("/"));

 

How i can clean the field if the field has mismatched double colon

1 Answer

0 votes
You can escape the double quotes with double quotes.

message.setNode("/", qie.escapeCsv(source.getNode("/")));

I think what you really want is to get the value:

"SANGRADO Y DOLOR DESPUES DE UN LEGRADO" POCS

and change it into:

"""SANGRADO Y DOLOR DESPUES DE UN LEGRADO"" POCS"
by michael-h-5027 (14.8k points)
...