<?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: Failed to create a file with surrogate pair characters UTF-16 in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151317#M33708</link>
    <description>&lt;P&gt;Yes, that's absolutely correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 7-mode, we could change the existing vol language and had to reboot.&amp;nbsp; However, with cDOT, vol language cannot be changed.&amp;nbsp; In cDOT, vol language is inherited from SVM language, that could be change but will onyl allow new volumes to inherit it but existing will remain the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I agree with you - Upgrade to 9.5 and then create a new volume with language '&lt;SPAN&gt;utf8mb4'.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 20:09:22 GMT</pubDate>
    <dc:creator>Ontapforrum</dc:creator>
    <dc:date>2019-09-27T20:09:22Z</dc:date>
    <item>
      <title>Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151302#M33702</link>
      <description>&lt;P&gt;We are running in to a problem when copying files to a CIFS share running on CDOT 9.4.&amp;nbsp; All files that contains 'special' characters in the file name is rejected.&amp;nbsp; We need to store forensics dumps of cell phone data with emojis and other off the wall characters.&amp;nbsp; As these are evidence, we cannot alter the files to comply with the base UTF character set that NetApp uses&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The email alert (see below) that gets generated has some steps to enable UTF surrogate pairs, but the syntax isn't valid (as far as I can tell) for CDOT 9.4.&amp;nbsp; So, I have two/three questions:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; What is the ramification of enabling UTF surrogate pairs (should we do it)?&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; What is the proper syntax to implement the change?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;2.a.&amp;nbsp; How do we make the change persistent across reboots?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subject: NODE_2: wafl.dir.surrpair.filename [LOG_ERR]&lt;/P&gt;
&lt;P&gt;Filer: NODE_2&lt;/P&gt;
&lt;P&gt;Time: Fri, Sep 20 09:50:41 2019 -0400&lt;/P&gt;
&lt;P&gt;Severity: LOG_ERR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Message: wafl.dir.surrpair.filename: Failed to create a file with surrogate pair characters in the name in the directory /vol/&amp;lt;redacted&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Description: This message occurs as a warning when a file name with surrogate pair characters in UTF-16 encoding fails to be created in a parent directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Action: To allow names with surrogate pairs to be created, use the following&lt;/P&gt;
&lt;P&gt;command: "setflag wafl_reject_surrogate_pair 0". If the option needs to be set across reboots, set the bootarg 'wafl-accept-surrogate-pair?' to "true" at the LOADER prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source: wafl_exempt00&lt;/P&gt;
&lt;P&gt;Index: 14321181&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:12:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151302#M33702</guid>
      <dc:creator>JP1</dc:creator>
      <dc:date>2025-06-04T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151307#M33704</link>
      <description>&lt;P&gt;Setflag is nodeshell diag level command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;node run local&lt;/P&gt;
&lt;P&gt;priv set diag&amp;nbsp;&lt;/P&gt;
&lt;P&gt;setflag ...&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:14:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151307#M33704</guid>
      <dc:creator>aborzenkov</dc:creator>
      <dc:date>2019-09-27T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151314#M33705</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to last response, some more info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a KB article on this issue: [Have mentioned the content below]&lt;/P&gt;
&lt;P&gt;&lt;A href="https://kb.netapp.com/app/answers/answer_view/a_id/1008772/loc/en_US#__highlight" target="_blank"&gt;https://kb.netapp.com/app/answers/answer_view/a_id/1008772/loc/en_US#__highlight&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;BR /&gt;clustered Data ONTAP prior to 9.5 supports only Unicode from the basic multilingual plane (UCS-2), so it does not handle Unicode that requires more than 16 bits to represent a character, such as emojis and other surrogate pairs.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;BR /&gt;9.5 added a new volume language utf8mb4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you have 9.4, following workaround is suggested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;BR /&gt;::&amp;gt; node run -node &amp;lt;Node name&amp;gt;&lt;BR /&gt;Filer&amp;gt; priv set diag&lt;BR /&gt;Filer*&amp;gt; setflag wafl_reject_surrogate_pair 0&lt;BR /&gt;Filer*&amp;gt; printflag wafl_reject_surrogate_pair wafl_reject_surrogate_pair =0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To make this change persistent across reboots, add the following command to the /etc/rc file:&lt;/STRONG&gt;&lt;BR /&gt;priv set diag;setflag wafl_reject_surrogate_pair 0;priv set admin&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:51:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151314#M33705</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2019-09-27T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151315#M33706</link>
      <description>&lt;P&gt;@&amp;nbsp;&lt;A id="link_7" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9541" target="_self"&gt;&lt;SPAN class="login-bold"&gt;aborzenkov&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for that tip.&amp;nbsp; I looked for setflag under set -priv diag, but not under local node.&amp;nbsp; Indeed setflag is recognized there.&lt;/P&gt;
&lt;P&gt;If I understand this, then I need to set the flag on each node that might host this volume?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 18:56:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151315#M33706</guid>
      <dc:creator>JP1</dc:creator>
      <dc:date>2019-09-27T18:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151316#M33707</link>
      <description>&lt;P&gt;@&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Community-Adviser lia-component-message-view-widget-author-username"&gt;&lt;A id="link_9" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.netapp.com/t5/user/viewprofilepage/user-id/73493" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Ontapforrum&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for that link.&amp;nbsp; That's just the article I was looking for.&amp;nbsp; If I'm understanding this correctly, we would need to upgrade to 9.5+, and also create a new volume for the CIFS share, correct?&amp;nbsp; In that scenario it seems we would no longer need to use setflag&amp;nbsp;wafl_reject_surrogate_pair 0 .&amp;nbsp; Is that also a correct statement?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 19:04:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151316#M33707</guid>
      <dc:creator>JP1</dc:creator>
      <dc:date>2019-09-27T19:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151317#M33708</link>
      <description>&lt;P&gt;Yes, that's absolutely correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 7-mode, we could change the existing vol language and had to reboot.&amp;nbsp; However, with cDOT, vol language cannot be changed.&amp;nbsp; In cDOT, vol language is inherited from SVM language, that could be change but will onyl allow new volumes to inherit it but existing will remain the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I agree with you - Upgrade to 9.5 and then create a new volume with language '&lt;SPAN&gt;utf8mb4'.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:09:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/151317#M33708</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2019-09-27T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to create a file with surrogate pair characters UTF-16</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/152848#M34061</link>
      <description>&lt;P&gt;With ontap 9.x, how does one make this persistent across reboots?&amp;nbsp; /etc/rc no longer seems to exist&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 05:01:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Failed-to-create-a-file-with-surrogate-pair-characters-UTF-16/m-p/152848#M34061</guid>
      <dc:creator>MStubbs</dc:creator>
      <dc:date>2019-12-07T05:01:34Z</dc:date>
    </item>
  </channel>
</rss>

