<?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>question Re: Unable to write a file with Chinese Characters filename in windows share ( samba) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177184#M139434</link>
    <description>&lt;P&gt;This is fixed by doing below:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Set default encoding using the JAVA_TOOL_OPTIONS environment variable: (nifi-env.sh) &amp;lt;-- currently this one not implemented&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;export JAVA_TOOL_OPTIONS=-Dfile.encoding=utf8
&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;
&lt;LI&gt;Add default encoding parameter to NiFi’s bootstrap.conf file:&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;java.arg.8=-Dfile.encoding=UTF8
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Of course, adjust the argument’s number according to your configuration.&lt;/P&gt;&lt;P&gt;And  in nifi-env.sh&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;export LANG="en_US.UTF-8"&lt;BR /&gt;export LC_ALL="en_US.UTF-8" &lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 08 May 2018 13:11:07 GMT</pubDate>
    <dc:creator>adamchui</dc:creator>
    <dc:date>2018-05-08T13:11:07Z</dc:date>
    <item>
      <title>Unable to write a file with Chinese Characters filename in windows share ( samba)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177182#M139432</link>
      <description>&lt;P&gt;I am currently running apache nifi in centos 7, and mounted some network drives by samba ( windows share ), then in the nifi data flow, I use putfile to write some files with Chinese Characters filename into the  network drives by samba.&lt;/P&gt;&lt;P&gt;Then I got this error&lt;/P&gt;&lt;PRE&gt;PutFile[id=e0ae7c13-0162-1000-f401-ecb9b39fa9de] Penalizing StandardFlowFileRecord[uuid=04563401-54ff-4a1f-9117-02e4472ff0c4,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1525659272432-6, container=default, section=6], offset=0, length=6981],offset=0,name=用户划款授权通知书.pdf,size=6981] and transferring to failure due to Malformed input or input contains unmappable characters: .用户划款授权通知书.pdf: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: .用户划款授权通知书.pdf&lt;/PRE&gt;&lt;P&gt;Please advise how to do.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 09:49:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177182#M139432</guid>
      <dc:creator>adamchui</dc:creator>
      <dc:date>2018-05-07T09:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write a file with Chinese Characters filename in windows share ( samba)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177183#M139433</link>
      <description>&lt;P&gt;Just tested, I are not able to write to local path "/tmp" neither&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 10:23:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177183#M139433</guid>
      <dc:creator>adamchui</dc:creator>
      <dc:date>2018-05-08T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write a file with Chinese Characters filename in windows share ( samba)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177184#M139434</link>
      <description>&lt;P&gt;This is fixed by doing below:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Set default encoding using the JAVA_TOOL_OPTIONS environment variable: (nifi-env.sh) &amp;lt;-- currently this one not implemented&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;export JAVA_TOOL_OPTIONS=-Dfile.encoding=utf8
&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;
&lt;LI&gt;Add default encoding parameter to NiFi’s bootstrap.conf file:&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;java.arg.8=-Dfile.encoding=UTF8
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Of course, adjust the argument’s number according to your configuration.&lt;/P&gt;&lt;P&gt;And  in nifi-env.sh&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;export LANG="en_US.UTF-8"&lt;BR /&gt;export LC_ALL="en_US.UTF-8" &lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 08 May 2018 13:11:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-write-a-file-with-Chinese-Characters-filename-in/m-p/177184#M139434</guid>
      <dc:creator>adamchui</dc:creator>
      <dc:date>2018-05-08T13:11:07Z</dc:date>
    </item>
  </channel>
</rss>

