<?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 Re: ERROR: invalid byte sequence for encoding &amp;quot;UTF8&amp;quot;: 0x00 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366622#M130086</link>
    <description>&lt;P&gt;I had also faced the same issue recently. As I'm working with &lt;SPAN&gt;PostgreSQL&amp;nbsp;&lt;/SPAN&gt;database while inserting the data from Excel (.xlsx) file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;PostgreSQL does not support zero in characters or 0x00 (unlike Oracle). You have to replace such chars with space or anything else.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In order to do so, you have to implement an expression in tMap to handle such situations.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Use&amp;nbsp;below expression:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;row1.your_column_name.replace("\\x00", " ")&lt;/PRE&gt; 
&lt;P&gt;For reference, follow below link:&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/1347646/postgres-error-on-insert-error-invalid-byte-sequence-for-encoding-utf8-0x0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/1347646/postgres-error-on-insert-error-invalid-byte-sequence-for-encoding-utf8-0x0&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This work for me. Give it a try.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 17:11:59 GMT</pubDate>
    <dc:creator>vaibs_parab</dc:creator>
    <dc:date>2018-04-25T17:11:59Z</dc:date>
    <item>
      <title>ERROR: invalid byte sequence for encoding "UTF8": 0x00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366620#M130084</link>
      <description>I received the following error when insert string column from mysql to Postgres.&lt;BR /&gt;Some of the rows were fixed when I did&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;trim(both &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#4237b0"&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;CHAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#b23100"&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;x00) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#4237b0"&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#4237b0"&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;text&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;&amp;nbsp; in my sql.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;But I am still getting this error for some other rows.&amp;nbsp;&lt;BR /&gt;Maybe it has invalid characters in the middle.&amp;nbsp;&lt;BR /&gt;How do I get rid of them?&amp;nbsp;</description>
      <pubDate>Wed, 05 Apr 2017 16:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366620#M130084</guid>
      <dc:creator>dwhdeveloper</dc:creator>
      <dc:date>2017-04-05T16:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: invalid byte sequence for encoding "UTF8": 0x00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366621#M130085</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Postgesql does not supports zero in characters.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Could you please take a look at this post:&lt;A href="http://stackoverflow.com/questions/1347646/postgres-error-on-insert-error-invalid-byte-sequence-for-encoding-utf8-0x0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/1347646/postgres-error-on-insert-error-invalid-byte-sequence-for-encoding-utf8-0x0&lt;/A&gt;?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;You can use tMap to replace "&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;\\x00" in expression.&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 07 Apr 2017 03:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366621#M130085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T03:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: invalid byte sequence for encoding "UTF8": 0x00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366622#M130086</link>
      <description>&lt;P&gt;I had also faced the same issue recently. As I'm working with &lt;SPAN&gt;PostgreSQL&amp;nbsp;&lt;/SPAN&gt;database while inserting the data from Excel (.xlsx) file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;PostgreSQL does not support zero in characters or 0x00 (unlike Oracle). You have to replace such chars with space or anything else.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In order to do so, you have to implement an expression in tMap to handle such situations.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Use&amp;nbsp;below expression:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;row1.your_column_name.replace("\\x00", " ")&lt;/PRE&gt; 
&lt;P&gt;For reference, follow below link:&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/1347646/postgres-error-on-insert-error-invalid-byte-sequence-for-encoding-utf8-0x0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/1347646/postgres-error-on-insert-error-invalid-byte-sequence-for-encoding-utf8-0x0&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This work for me. Give it a try.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366622#M130086</guid>
      <dc:creator>vaibs_parab</dc:creator>
      <dc:date>2018-04-25T17:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: invalid byte sequence for encoding "UTF8": 0x00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366623#M130087</link>
      <description>&lt;P&gt;How can we handle the same issue in Talend data Mapper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used below function while loading the data into PostgreSQL database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've uploaded the regex and replace string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwNK"&gt;Screen Shot 2019-09-10 at 11.19.39 AM.png&lt;/A&gt;</description>
      <pubDate>Tue, 10 Sep 2019 17:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ERROR-invalid-byte-sequence-for-encoding-quot-UTF8-quot-0x00/m-p/2366623#M130087</guid>
      <dc:creator>raghu780</dc:creator>
      <dc:date>2019-09-10T17:21:28Z</dc:date>
    </item>
  </channel>
</rss>

