<?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 Got &amp;quot;unknown encoding&amp;quot; error with Splunk python3 in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Got-quot-unknown-encoding-quot-error-with-Splunk-python3/m-p/555017#M9913</link>
    <description>&lt;P&gt;I was tring to write a customized script to read data from API and decode in splunk , but got below error&amp;nbsp;&lt;/P&gt;&lt;P&gt;when decoding content with "gb2312",&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with a very simple&amp;nbsp; script like below and could reproduce the issue in splunk in Mac Os&lt;/P&gt;&lt;P&gt;./splunk cmd python3 -c&amp;nbsp; "print(b'\xce\xd2'.decode('gb2312'))"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxu_splunk_0-1623217341593.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14552iF59F2B3EA069A4CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxu_splunk_0-1623217341593.png" alt="sxu_splunk_0-1623217341593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BTW:&amp;nbsp; same script works in splunk in win10&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 05:45:46 GMT</pubDate>
    <dc:creator>sxu_splunk</dc:creator>
    <dc:date>2021-06-09T05:45:46Z</dc:date>
    <item>
      <title>Got "unknown encoding" error with Splunk python3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Got-quot-unknown-encoding-quot-error-with-Splunk-python3/m-p/555017#M9913</link>
      <description>&lt;P&gt;I was tring to write a customized script to read data from API and decode in splunk , but got below error&amp;nbsp;&lt;/P&gt;&lt;P&gt;when decoding content with "gb2312",&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with a very simple&amp;nbsp; script like below and could reproduce the issue in splunk in Mac Os&lt;/P&gt;&lt;P&gt;./splunk cmd python3 -c&amp;nbsp; "print(b'\xce\xd2'.decode('gb2312'))"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxu_splunk_0-1623217341593.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14552iF59F2B3EA069A4CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxu_splunk_0-1623217341593.png" alt="sxu_splunk_0-1623217341593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BTW:&amp;nbsp; same script works in splunk in win10&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 05:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Got-quot-unknown-encoding-quot-error-with-Splunk-python3/m-p/555017#M9913</guid>
      <dc:creator>sxu_splunk</dc:creator>
      <dc:date>2021-06-09T05:45:46Z</dc:date>
    </item>
  </channel>
</rss>

