<?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 Does &amp;quot;watch a folder for a new csv/json file&amp;quot; input connector not support UTF-8 encoding? in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714503#M3096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="44379" data-objecttype="3" href="https://community.esri.com/people/rsunderman-esristaff" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;@RJ Sunderman&amp;nbsp; &amp;nbsp;@&lt;/A&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="271172" data-objecttype="3" href="https://community.esri.com/people/EMedina-esristaff" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Earl Medin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; use&amp;nbsp; "wath a folder for a new csv/json file " input connector to ingest the real time data , and find that it works well in files that do not contain chinese characters,&amp;nbsp; if I change some field names or field value to chinese characters in the same file and it does't work, even though I have changed the file's encoding to "UTF-8". so I want to know that does these input connector support UTF-8?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="166" src="https://community.esri.com/legacyfs/online/457214_1.png" width="538" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-2 jive-image" height="304" src="https://community.esri.com/legacyfs/online/457216_2.png" width="405" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another question about this connector is that , the parameter of&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Expected Date Format&amp;nbsp;&amp;nbsp;will&amp;nbsp;&lt;SPAN&gt;convert the data time to what format? I format it like this"yyyy/MM/dd hh:mm:ss" and the input datetime is "2019/7/28 9:12" and the output datetime format become to "2019-07-28T09:12:00.000+08:00"(write to a csv file output), it is seems that it change the datetime to "UTC+8"? and then it looks like this "7/28/2019, 09:12 AM" in portal viewer througt the attribute table ,which the feature layer is published by geoevent with "add a feature to a spatiotemporal big data store&lt;SPAN style="color: #505051; background-color: #ffffff; font-weight: 400; font-size: 15.6px;"&gt;" output connector.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN style="background-color: #ffffff; color: #505051; font-weight: 400; font-size: 15.6px; "&gt;I am a little confused about these datetime, does they mean the same time? is there any methord to keep the three of them in the same way to&amp;nbsp;expressing the datetime?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN style="background-color: #ffffff; color: #505051; font-weight: 400; font-size: 15.6px; "&gt;&lt;IMG alt="" class="image-3 jive-emoji jive-image" height="390" src="https://community.esri.com/legacyfs/online/457217_6.png" width="699" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Aug 2019 03:44:34 GMT</pubDate>
    <dc:creator>ShengrongLiu</dc:creator>
    <dc:date>2019-08-16T03:44:34Z</dc:date>
    <item>
      <title>Does "watch a folder for a new csv/json file" input connector not support UTF-8 encoding?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714503#M3096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="44379" data-objecttype="3" href="https://community.esri.com/people/rsunderman-esristaff" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;@RJ Sunderman&amp;nbsp; &amp;nbsp;@&lt;/A&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="271172" data-objecttype="3" href="https://community.esri.com/people/EMedina-esristaff" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Earl Medin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; use&amp;nbsp; "wath a folder for a new csv/json file " input connector to ingest the real time data , and find that it works well in files that do not contain chinese characters,&amp;nbsp; if I change some field names or field value to chinese characters in the same file and it does't work, even though I have changed the file's encoding to "UTF-8". so I want to know that does these input connector support UTF-8?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="166" src="https://community.esri.com/legacyfs/online/457214_1.png" width="538" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-2 jive-image" height="304" src="https://community.esri.com/legacyfs/online/457216_2.png" width="405" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another question about this connector is that , the parameter of&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Expected Date Format&amp;nbsp;&amp;nbsp;will&amp;nbsp;&lt;SPAN&gt;convert the data time to what format? I format it like this"yyyy/MM/dd hh:mm:ss" and the input datetime is "2019/7/28 9:12" and the output datetime format become to "2019-07-28T09:12:00.000+08:00"(write to a csv file output), it is seems that it change the datetime to "UTC+8"? and then it looks like this "7/28/2019, 09:12 AM" in portal viewer througt the attribute table ,which the feature layer is published by geoevent with "add a feature to a spatiotemporal big data store&lt;SPAN style="color: #505051; background-color: #ffffff; font-weight: 400; font-size: 15.6px;"&gt;" output connector.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN style="background-color: #ffffff; color: #505051; font-weight: 400; font-size: 15.6px; "&gt;I am a little confused about these datetime, does they mean the same time? is there any methord to keep the three of them in the same way to&amp;nbsp;expressing the datetime?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN style="background-color: #ffffff; color: #505051; font-weight: 400; font-size: 15.6px; "&gt;&lt;IMG alt="" class="image-3 jive-emoji jive-image" height="390" src="https://community.esri.com/legacyfs/online/457217_6.png" width="699" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 03:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714503#M3096</guid>
      <dc:creator>ShengrongLiu</dc:creator>
      <dc:date>2019-08-16T03:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Does "watch a folder for a new csv/json file" input connector not support UTF-8 encoding?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714504#M3097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/348217"&gt;Shengrong Liu&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are also struggeling with the encoding. We also have text files that contains special characters. The first hint I got was to set the "&lt;EM&gt;Is the file text&lt;/EM&gt;" Parameter of the Input connector to &lt;EM&gt;false&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&lt;SPAN style="color: black;"&gt;The file transport has a 'Is File Text' parameter which when set 'True' (the default) limits data to single-byte character sets (typically the ASCII character set 0x0020 - 0x007e). &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;The error is misleading as the file's data *is* UTF-8 encoded. Multibyte character sets can be UTF-8 encoded, but GeoEvent's FILE transport only accepts single-byte character sets. The request is to enhance the FILE transport to work with multi-byte character sets (and correct the error message suggesting the problem is with UTF-8 encoding).&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing this parameter this error is gone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;Could not decode the incoming buffer. Expected UTF-8 encoding. Make sure your input is in UTF-8 Encoding.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still it does not look like that the input connector is able to interprete the complete text file. You should test it, maybe it work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other workarounds might be using a different transport, like sending the date via TCP or http/POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 08:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714504#M3097</guid>
      <dc:creator>Stefan_Jung</dc:creator>
      <dc:date>2019-08-16T08:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Does "watch a folder for a new csv/json file" input connector not support UTF-8 encoding?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714505#M3098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan P.Jung,&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply , I have tried what you said and set&amp;nbsp; &lt;EM style="border: 0px; background-color: #f6f6f6; color: black; font-weight: inherit; "&gt;'Is File Text' parameter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit;"&gt; as &lt;EM&gt;false&lt;/EM&gt;,&amp;nbsp; yes , it seems like that the input connector can read the file( the count of the input change 0 to 633) but the count of&amp;nbsp; geoevent service's in and out&amp;nbsp; is still 0,&amp;nbsp; just like what you said"&lt;SPAN style="color: #3d3d3d; background-color: #ffffff;"&gt;But still it does not look like that the input connector is able to interprete the complete text file" and I found an warn(not error) in geoevent log like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="color: #505051; font-size: 12px;"&gt;&lt;TBODY&gt;&lt;TR style="background-color: #cee6fa;"&gt;&lt;TD class="" colspan="1" style="background: #e5edf4; border-width: 1px; border-style: solid; border-color: #769dc0 #e5dac8 #769dc0 transparent; padding: 3px 5px;"&gt;com.esri.ges.fabric.core.ZKSerializer&lt;/TD&gt;&lt;TD class="" colspan="1" style="background: #e5edf4; border-width: 1px; border-style: solid; border-color: #769dc0 #e5dac8 #769dc0 transparent; padding: 3px 5px;"&gt;Cannot unmarshal to class: class com.esri.ges.jaxb.stream.StreamWrapper&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try other way , thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 09:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714505#M3098</guid>
      <dc:creator>ShengrongLiu</dc:creator>
      <dc:date>2019-08-16T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does "watch a folder for a new csv/json file" input connector not support UTF-8 encoding?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714506#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: sans-serif; color: #3d3d3d; font-size: 11.5pt;"&gt;&lt;P style="margin: 0pt 0pt 8pt 0pt;"&gt;Hello &lt;A href="https://community.esri.com/migrated-users/348217"&gt;Shengrong Liu&lt;/A&gt; –&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;&lt;A href="https://community.esri.com/migrated-users/191063"&gt;Stefan P. Jung&lt;/A&gt;‌ is correct. There is an issue against the FILE inbound transport both to support multi-byte character sets and to provide a better error message than suggesting that the problem is with the UTF-8 character encoding. The suggested work around is to try having the inbound transport treat the file as non-text (setting 'Is File Text' to 'False') ... or using a different transport like HTTP.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;You indicated that the&amp;nbsp;&lt;EM style="text-decoration: underline; "&gt;input's&lt;/EM&gt; event count increases when the file is read as non-text ... but the In/Out event counts of the GeoEvent Service do not change. I would try copying the input to create a new instance and then incorporating that new instance in a new GeoEvent Service with not processors or filters, routing the inbound file's content direct to an 'Write to a JSON File' output. What I'm looking for here is whether there is a problem between the existing input instance such that an underlying Kafka topic / consumer is not recognizing that an inbound connector has successfully received and adapted event data. A GeoEvent Service should at least consume data adapted by one of its inputs, so the 'In' event count should increase even if there's some other problem such that no event records actually pass 'Out' from the GeoEvent Service.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;For your last question, on how an input's Expected Date Format parameter works and what a "date" will be converted to – I would say that when a GeoEvent Definition specifies that a field is a&amp;nbsp;&lt;EM&gt;Date&lt;/EM&gt; an inbound adapter will attempt to use the pattern in the&amp;nbsp;Expected Date Format parameter to interpret a string to create a&amp;nbsp;&lt;EM&gt;Date&lt;/EM&gt;. In this context a&amp;nbsp;&lt;EM&gt;Date&lt;/EM&gt; is a Java primitive type like&amp;nbsp;&lt;EM&gt;Long&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;String&lt;/EM&gt;, or&amp;nbsp;&lt;EM&gt;Double&lt;/EM&gt;.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 6pt 0pt;"&gt;You might want to take a look at a blog I published &lt;A href="https://community.esri.com/community/gis/enterprise-gis/geoevent/blog/2019/03/14/what-time-is-it-well-that-depends?sr=search&amp;amp;searchId=d2d0b578-09b4-44ae-9fc1-1f7872307741&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/enterprise-gis/geoevent/blog/2019/03/14/what-time-is-it-well-that-depends?sr=search&amp;amp;searchId=d2d0b578-09b4-44ae-9fc1-1f7872307741&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;BR /&gt;A date can be represented several different ways.&lt;/P&gt;&lt;UL&gt;&lt;LI style="margin: 3pt 0pt 3pt 0pt;"&gt;As a verbose string ... "&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Thursday, August 22, 2019 3:30:00 AM (GMT)&lt;/SPAN&gt;"&lt;/LI&gt;&lt;LI style="margin: 3pt 0pt 3pt 0pt;"&gt;As an &lt;A href="https://www.w3.org/TR/NOTE-datetime"&gt;ISO 8601&lt;/A&gt; value ... "2019-08-22T20:30:00-07:00"&lt;/LI&gt;&lt;LI style="margin: 3pt 0pt 3pt 0pt;"&gt;As a&amp;nbsp;long integer in epoch milliseconds ...&amp;nbsp;1566444600000&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;All three representations above are the exact same date/time. When using a 'Write to a CSV File' output the default is to represent the time as an ISO 8601 formatted string. The +/- 0:00 at the end of the string tells you how many hours the value has been offset from UTC. When adding or updating feature records in a geodatabase like the spatiotemporal big data store&amp;nbsp;&lt;EM&gt;Date&lt;/EM&gt; values are stored as epoch long integer values in milliseconds.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;When you click a feature in a web map it is up to the&amp;nbsp;&lt;EM style="text-decoration: underline; "&gt;client&lt;/EM&gt; how to represent the date value. You should be aware that when an&amp;nbsp;&lt;SPAN&gt;Expected Date Format pattern is specified it is likely that the date value will be considered a local date/time value. This also likely means that a web application, when it queries the date value from the geodatabase, will assume that it is receiving a UTC value and&amp;nbsp;&lt;EM style="text-decoration: underline; "&gt;offset&lt;/EM&gt; the value for you to a local date/time and represent it as a string. I mention this so that you will look for the possibility that a date you read from an input file is not representing as the expected date value once it is (a) written out to a feature record and (b) queried by a client and converted to a string for display in a pop-up dialog.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;Hope this information is helpful –&lt;BR /&gt;RJ&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 03:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/does-quot-watch-a-folder-for-a-new-csv-json-file/m-p/714506#M3099</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2019-08-21T03:30:51Z</dc:date>
    </item>
  </channel>
</rss>

