<?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: Encoding Error in CSV Parsing in Community Chat</title>
    <link>https://systematic.workato.com/t5/community-chat/encoding-error-in-csv-parsing/m-p/8211#M494</link>
    <description>&lt;P&gt;Your CSV likely contains non-UTF-8 characters or a Byte Order Mark (BOM). To fix:&lt;/P&gt;&lt;P&gt;1) Check the file's actual encoding (e.g., file -I yourfile.csv on Mac).&lt;BR /&gt;2) Clean it using a script like this in Python:&lt;/P&gt;&lt;P&gt;import codecs&lt;BR /&gt;with codecs.open('input.csv', 'r', 'utf-8-sig') as source_file:&lt;BR /&gt;with codecs.open('output.csv', 'w', 'utf-8') as target_file:&lt;BR /&gt;target_file.write(source_file.read())&lt;/P&gt;&lt;P&gt;3) Ensure Metabase outputs clean UTF-8 without BOM.&lt;BR /&gt;4) Compare the "manual" and "automated" CSV versions for differences.&lt;/P&gt;</description>
    <pubDate>Sun, 17 Nov 2024 03:39:58 GMT</pubDate>
    <dc:creator>timwolfe</dc:creator>
    <dc:date>2024-11-17T03:39:58Z</dc:date>
    <item>
      <title>Encoding Error in CSV Parsing</title>
      <link>https://systematic.workato.com/t5/community-chat/encoding-error-in-csv-parsing/m-p/7352#M239</link>
      <description>&lt;DIV&gt;I am parsing a CSV to send out email reminders.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a scheduled job which emails me the CSV every day via Metabase. I set the encoding to UTF-8, but got error:&amp;nbsp;&lt;SPAN&gt;Error parsing CSV file: Invalid byte sequence in UTF-8 in line 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I change the encoding to US-ASCII, it is giving error:&lt;/SPAN&gt;&lt;SPAN&gt;"\x89" on US-ASCII&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I download the CSV on my Mac and manually run the recipe, it works fine. Has anyone faced this issue before?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Sep 2024 04:11:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/encoding-error-in-csv-parsing/m-p/7352#M239</guid>
      <dc:creator>VaradS</dc:creator>
      <dc:date>2024-09-03T04:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding Error in CSV Parsing</title>
      <link>https://systematic.workato.com/t5/community-chat/encoding-error-in-csv-parsing/m-p/8211#M494</link>
      <description>&lt;P&gt;Your CSV likely contains non-UTF-8 characters or a Byte Order Mark (BOM). To fix:&lt;/P&gt;&lt;P&gt;1) Check the file's actual encoding (e.g., file -I yourfile.csv on Mac).&lt;BR /&gt;2) Clean it using a script like this in Python:&lt;/P&gt;&lt;P&gt;import codecs&lt;BR /&gt;with codecs.open('input.csv', 'r', 'utf-8-sig') as source_file:&lt;BR /&gt;with codecs.open('output.csv', 'w', 'utf-8') as target_file:&lt;BR /&gt;target_file.write(source_file.read())&lt;/P&gt;&lt;P&gt;3) Ensure Metabase outputs clean UTF-8 without BOM.&lt;BR /&gt;4) Compare the "manual" and "automated" CSV versions for differences.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 03:39:58 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/encoding-error-in-csv-parsing/m-p/8211#M494</guid>
      <dc:creator>timwolfe</dc:creator>
      <dc:date>2024-11-17T03:39:58Z</dc:date>
    </item>
  </channel>
</rss>

