<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Escape Special characters - tWriteJSONField in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263706#M43778</link>
    <description>&lt;P&gt;Getting below mentioned error. source attribute had a value with special character '&amp;amp;'. Due to that i am getting this error in&amp;nbsp;tWriteJSONField.&lt;/P&gt;
&lt;P&gt;my requirement is to convert source data to Json file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone advise how to escape those special characters without replacing or removing those characters. I mean i want to send the information to target which i am receiving from source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;FATAL TERMS_DATA_EXTRACT_GEN:8131 - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 92&lt;/P&gt;
&lt;P class="p1"&gt;2019-03-15 09:31:04 FATAL TERMS_DATA_EXTRACT_GEN:2896 - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 92&lt;/P&gt;
&lt;P class="p1"&gt;[Fatal Error] :1:92: Character reference "&amp;amp;#&lt;/P&gt;
&lt;P class="p1"&gt;Exception in component tWriteJSONField_1_In&lt;/P&gt;
&lt;P class="p1"&gt;net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 92&lt;/P&gt;
&lt;P class="p1"&gt;at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:331)&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 15:20:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-15T15:20:57Z</dc:date>
    <item>
      <title>Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263706#M43778</link>
      <description>&lt;P&gt;Getting below mentioned error. source attribute had a value with special character '&amp;amp;'. Due to that i am getting this error in&amp;nbsp;tWriteJSONField.&lt;/P&gt;
&lt;P&gt;my requirement is to convert source data to Json file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone advise how to escape those special characters without replacing or removing those characters. I mean i want to send the information to target which i am receiving from source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;FATAL TERMS_DATA_EXTRACT_GEN:8131 - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 92&lt;/P&gt;
&lt;P class="p1"&gt;2019-03-15 09:31:04 FATAL TERMS_DATA_EXTRACT_GEN:2896 - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 92&lt;/P&gt;
&lt;P class="p1"&gt;[Fatal Error] :1:92: Character reference "&amp;amp;#&lt;/P&gt;
&lt;P class="p1"&gt;Exception in component tWriteJSONField_1_In&lt;/P&gt;
&lt;P class="p1"&gt;net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 92&lt;/P&gt;
&lt;P class="p1"&gt;at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:331)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 15:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263706#M43778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263707#M43779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please check the details in this link?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/19176024/how-to-escape-special-characters-in-building-a-json-string/27516892" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/19176024/how-to-escape-special-characters-in-building-a-json-string/27516892&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 15:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263707#M43779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T15:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263708#M43780</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;It didn't help... i tried several ways and i am still hitting the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) replaced '&amp;amp;' with&amp;nbsp; '//&amp;amp;'&lt;/P&gt;&lt;P&gt;2) TalendString.replaceSpecialCharForXML(input)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 20:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263708#M43780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T20:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263709#M43781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share 3 or 4 ample input records and expected output record. We will try to fill in the missing part then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 08:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263709#M43781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-16T08:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263710#M43782</link>
      <description>&lt;P&gt;hi @RAVI KOPPARAPU​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I've come across this problem and found out, that there are even more special ("invisible") characters that are causing problems in the component tWriteJSONField. &lt;/P&gt;&lt;P&gt;I built my own program to delete these unnecessary values. In case you want to keep them try to escape them with backslash:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the routine I replaced as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;public static String removeControlChar(String input) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input = input.replaceAll("\u0000", ""); //remove control character NUL (hex value 0x00)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input = input.replaceAll("\u0002", ""); //remove control character STX (hex value 0x02)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input = input.replaceAll("\u000b", ""); //remove control character VT (hex value 0x0B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input = input.replaceAll("\u000e", ""); //remove control character SO (hex value 0x0E)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input = input.replaceAll("\u000f", ""); //remove control character SI (hex value 0x0F)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input = input.replaceAll("\u0010", ""); //remove control character DLE (hex value 0x10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input = input.replaceAll("\u0003", ""); //remove control character ETX (hex value 0x03)&lt;/P&gt;&lt;P&gt;return input;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 09:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263710#M43782</guid>
      <dc:creator>pheld</dc:creator>
      <dc:date>2020-09-14T09:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263711#M43783</link>
      <description>&lt;P&gt;Hi @RAVI KOPPARAPU​&amp;nbsp;Just wondering if you had managed to find a solution to this? Would you by any chance remember what the solution was as I am currently experiencing the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 01:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263711#M43783</guid>
      <dc:creator>cara_ay</dc:creator>
      <dc:date>2021-09-30T01:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263712#M43784</link>
      <description>&lt;P&gt;HI,@Cara Au Yeung​&amp;nbsp; could you send an example of the json file wich causing issues ?&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 14:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263712#M43784</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-01T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Escape Special characters - tWriteJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263713#M43785</link>
      <description>&lt;P&gt;Hi @guenneguez jeremy​&amp;nbsp;Thanks for the offer but I've actually managed to find the cause of the issue. I was querying the MySQL database to genereate the json file. It was the backspace (\b) characters in the MySQL database that were triggering the error in Talend.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 01:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Escape-Special-characters-tWriteJSONField/m-p/2263713#M43785</guid>
      <dc:creator>cara_ay</dc:creator>
      <dc:date>2021-10-03T01:48:50Z</dc:date>
    </item>
  </channel>
</rss>

