<?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: help with CSV inputs - utf16-le and header input problems in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100591#M21059</link>
    <description>&lt;P&gt;The fix for the SPL-78590 has been released in 6.0.2+. Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2015 07:57:46 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2015-05-27T07:57:46Z</dc:date>
    <item>
      <title>help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100585#M21053</link>
      <description>&lt;P&gt;I have a utf-16 CSV file with a 0xFFFE byte order mark and the csv field names in the first line.&lt;/P&gt;

&lt;P&gt;I have defined the charset for that input type to be utf-16le, which is fine, however, it extracts the field names incorrectly, e.g. the field name 'Company' is shown as&lt;/P&gt;

&lt;P&gt;x00C_x00o_x00m_x00p_x00a_x00n_x00y_x00&lt;/P&gt;

&lt;P&gt;I have tried various ways to fix this, &lt;/P&gt;

&lt;P&gt;Firstly, skipping the first line using the following in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PREAMBLE_REGEX = \ufffe
FIELD_NAMES = id,username,firstname,lastname,company,time,ipaddress
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I then get no named fields at all and the first line is an indexed record.&lt;/P&gt;

&lt;P&gt;Secondly, trying FIELD_HEADER_REGEX, also no luck&lt;/P&gt;

&lt;P&gt;Edit: I also tried the preamble_REGEX as \ufeff, I also removed the BOM but still it creates the incorrectly decoded utf16 field names.&lt;/P&gt;

&lt;P&gt;I converted the file to utf-8 and it's fine, but that's not a practical solution in the live environment.&lt;/P&gt;

&lt;P&gt;Anyone got utf-16 + csv working?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100585#M21053</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-09-28T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100586#M21054</link>
      <description>&lt;P&gt;Just want to be certain, the field values are decoded okay, but the field names are not, is that correct?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 01:35:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100586#M21054</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-10-16T01:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100587#M21055</link>
      <description>&lt;P&gt;Yes, values are fine, just the header names are wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 02:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100587#M21055</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-10-16T02:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100588#M21056</link>
      <description>&lt;P&gt;I am having the same problem.  Did you ever find a solution?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Joe&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2013 05:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100588#M21056</guid>
      <dc:creator>rizzo75</dc:creator>
      <dc:date>2013-12-08T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100589#M21057</link>
      <description>&lt;P&gt;No Splunk solution, but I converted the files to utf-8, depending on your platform, I used &lt;/P&gt;

&lt;P&gt;iconv -f utf16-le -t utf-8 &lt;/P&gt;

&lt;P&gt;to convert the file.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2013 07:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100589#M21057</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-12-08T07:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100590#M21058</link>
      <description>&lt;P&gt;I opened a case with Splunk.  Bug SPL-78590 has been logged regarding this issue.  It seems like the field extraction is not taking into the consideration regarding CHARSET specified.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2014 14:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100590#M21058</guid>
      <dc:creator>rizzo75</dc:creator>
      <dc:date>2014-01-03T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: help with CSV inputs - utf16-le and header input problems</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100591#M21059</link>
      <description>&lt;P&gt;The fix for the SPL-78590 has been released in 6.0.2+. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2015 07:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-CSV-inputs-utf16-le-and-header-input-problems/m-p/100591#M21059</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2015-05-27T07:57:46Z</dc:date>
    </item>
  </channel>
</rss>

