<?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 Problem removing end of line carater in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350863#M117633</link>
    <description>&lt;P&gt;Hi the community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks like a common begginer issue, but I can't find solving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Talend Open studio 7.3, I am gathering data using a Trest request.&lt;/P&gt;&lt;P&gt;This gets me a string "Body" and an Integer "Error".&lt;/P&gt;&lt;P&gt;My probleme is that in the string (which is a json information), I got those caracter withing the string:&lt;/P&gt;&lt;P&gt;..."parameter_alias":"","value":"example\r\n$(95)$","default":"No"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that \r\n really bothers me, since when I then parse that into the json component it creates me 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for my attemps, I put a tlogrow before and after the tMap and then I replaced the tMap with a treplace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many things:&lt;/P&gt;&lt;P&gt;first I went with the row1.body.replace("\\n", " ") in a tMap =&amp;gt; not working.&lt;/P&gt;&lt;P&gt;I tried with "\n", not working (normal)&lt;/P&gt;&lt;P&gt;I tried with "\\\n", not working (normal but eh...I was thinking something went wrong so why not test that)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I thought the \r maybe the bothering one within all of this so:&lt;/P&gt;&lt;P&gt;I tried "\\r\\n|\\r|\\n"..... not working. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the StringHandling.EREPLACE(row1.Body,"\\n", " ") and all the other value above =&amp;gt; not working.&lt;/P&gt;&lt;P&gt;I then tried this: StringHandling.EREPLACE(row1.Body,"\\r\\n|\\r|\\n", " ")  =&amp;gt; not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tried with the Treplace component also, and again, can't make it work. That damn \r\n stays in the string....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 15:55:08 GMT</pubDate>
    <dc:creator>JohnJ</dc:creator>
    <dc:date>2021-06-25T15:55:08Z</dc:date>
    <item>
      <title>Problem removing end of line carater</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350863#M117633</link>
      <description>&lt;P&gt;Hi the community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks like a common begginer issue, but I can't find solving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Talend Open studio 7.3, I am gathering data using a Trest request.&lt;/P&gt;&lt;P&gt;This gets me a string "Body" and an Integer "Error".&lt;/P&gt;&lt;P&gt;My probleme is that in the string (which is a json information), I got those caracter withing the string:&lt;/P&gt;&lt;P&gt;..."parameter_alias":"","value":"example\r\n$(95)$","default":"No"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that \r\n really bothers me, since when I then parse that into the json component it creates me 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for my attemps, I put a tlogrow before and after the tMap and then I replaced the tMap with a treplace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many things:&lt;/P&gt;&lt;P&gt;first I went with the row1.body.replace("\\n", " ") in a tMap =&amp;gt; not working.&lt;/P&gt;&lt;P&gt;I tried with "\n", not working (normal)&lt;/P&gt;&lt;P&gt;I tried with "\\\n", not working (normal but eh...I was thinking something went wrong so why not test that)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I thought the \r maybe the bothering one within all of this so:&lt;/P&gt;&lt;P&gt;I tried "\\r\\n|\\r|\\n"..... not working. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the StringHandling.EREPLACE(row1.Body,"\\n", " ") and all the other value above =&amp;gt; not working.&lt;/P&gt;&lt;P&gt;I then tried this: StringHandling.EREPLACE(row1.Body,"\\r\\n|\\r|\\n", " ")  =&amp;gt; not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tried with the Treplace component also, and again, can't make it work. That damn \r\n stays in the string....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 15:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350863#M117633</guid>
      <dc:creator>JohnJ</dc:creator>
      <dc:date>2021-06-25T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem removing end of line carater</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350864#M117634</link>
      <description>&lt;P&gt;&amp;nbsp;1) row1.body  = row1.body.replaceAll("\\n", " ")&lt;/P&gt;&lt;P&gt;     row1.body  = row1.body.replaceAll("\\r", " ")&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&amp;nbsp;1) row1.body  = row1.body.replaceAll("\\\\n", " ")&lt;/P&gt;&lt;P&gt;     row1.body  = row1.body.replaceAll("\\\\r", " ")&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 11:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350864#M117634</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-06-27T11:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem removing end of line carater</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350865#M117635</link>
      <description>&lt;P&gt;Thanks a lot Prkhar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's working with 4 \ =&amp;gt; I used that StringHandling.EREPLACE(row1.Body,"\\\\r\\\\n", " ")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 08:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-removing-end-of-line-carater/m-p/2350865#M117635</guid>
      <dc:creator>JohnJ</dc:creator>
      <dc:date>2021-06-28T08:19:41Z</dc:date>
    </item>
  </channel>
</rss>

