<?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: Search Widget not Working with non English Characters in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311823#M81775</link>
    <description>&lt;P&gt;Very good; thank you also for taking the time to explain.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 23:42:17 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-07-25T23:42:17Z</dc:date>
    <item>
      <title>Search Widget not Working with non English Characters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1310981#M81764</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to use the search widget with Arabic characters but it returns no result.&lt;/P&gt;&lt;P&gt;I found some articles on editing the where clause and adding the letter N before the search term&lt;/P&gt;&lt;P&gt;How can I add it to the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76103i236C024DD0DA634A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Code.png" alt="Code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 23:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1310981#M81764</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2023-07-25T23:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget not Working with non English Characters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311620#M81769</link>
      <description>&lt;P&gt;I haven't seen the documentation you're referring to that involves the letter 'N', so not sure if it will work or not.&amp;nbsp; However, what I can help you with is inserting that letter into your Search tool's queries.&amp;nbsp; Although it's about a completely different issue, &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-25-deep-searching-feature-layer/m-p/1234281" target="_self"&gt;this thread&lt;/A&gt; shows multiple approaches of adjusting the query created by the Search tool before it's sent.&amp;nbsp; Perhaps using one of those approaches will accomplish what you're trying to do.&lt;/P&gt;&lt;P&gt;For example, if you go with the first suggested approach, you would have something like this at line 5 instead:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query.where = query.where.replace(/ LIKE '/g, " LIKE 'N");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 17:09:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311620#M81769</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-07-25T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget not Working with non English Characters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311820#M81774</link>
      <description>&lt;P&gt;Thanks a lot,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp; that was very helpful. I changed the code a little bit to work with TypeScript. Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MohammedZaki_0-1690327652755.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76308i73D91A880D5B9101/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MohammedZaki_0-1690327652755.png" alt="MohammedZaki_0-1690327652755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regarding the use of the letter N in SQL (as the feature layers are not hosted in my case, we are dealing here with &lt;SPAN&gt;registered enterprise geodatabase layers)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;The letter "N" before the string in SQL stands for the National Language Character Set (NCHAR) prefix. In SQL, prefixing a string with "N" indicates that the string is in Unicode format. Unicode is a character encoding that supports a wide range of characters and symbols from various writing systems, including Arabic, Chinese, Japanese, Cyrillic, and many others.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;When dealing with non-ASCII characters, such as Arabic letters, it is important to use Unicode encoding to ensure proper handling and representation of these characters in the database. Using the "N" prefix in the SQL query, as in this example, allows the database to interpret the string as Unicode, and thus, it can correctly match and query the Arabic words in the "governorate" field.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 23:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311820#M81774</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2023-07-25T23:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget not Working with non English Characters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311823#M81775</link>
      <description>&lt;P&gt;Very good; thank you also for taking the time to explain.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 23:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/m-p/1311823#M81775</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-07-25T23:42:17Z</dc:date>
    </item>
  </channel>
</rss>

