<?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: filegdb api - &amp;quot;UPPER&amp;quot; in sql query not working for Cyrrilic symbols in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701145#M1115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this method should not help! The word which must be founded I can do anything, but ho do like that&lt;/P&gt;&lt;P&gt;"SEARCH * FROM CITY WHERE UPPER(Encoding.UNICODE(TITLE)) = UPPER("SEARCHED_TEXT")"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Jun 2016 19:07:47 GMT</pubDate>
    <dc:creator>OlegMaslenko</dc:creator>
    <dc:date>2016-06-05T19:07:47Z</dc:date>
    <item>
      <title>filegdb api - "UPPER" in sql query not working for Cyrrilic symbols</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701141#M1111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi everybody. D&lt;SPAN lang="en"&gt;o not scold for my English.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm using filegdb api v1.4. and have such problem with sql query.&lt;/P&gt;&lt;P&gt;SQL query for example: "SELECT * FROM City WHERE UPPER(&lt;STRONG&gt;TITLE_ENG&lt;/STRONG&gt;) LIKE '%&lt;STRONG&gt;KIEV&lt;/STRONG&gt;%' " - &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;this is work&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL query for example: "SELECT * FROM City WHERE UPPER(&lt;STRONG&gt;TITLE_RU&lt;/STRONG&gt;) LIKE '%&lt;STRONG&gt;КИЕВ&lt;/STRONG&gt;%' " - &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;this isn't work&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I noticed:&lt;/P&gt;&lt;P&gt;1) that function "UPPER" and "LOWER" won't work with the text contains &lt;SPAN style="text-decoration: underline;"&gt;Cyrrilic symbols&lt;/SPAN&gt;. I tried to use "collate" but it didn't work.&lt;/P&gt;&lt;P&gt;2) that SQL query works in ArcMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are anybody knows how to decide this problem with Cyrillic symbols!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 10:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701141#M1111</guid>
      <dc:creator>OlegMaslenko</dc:creator>
      <dc:date>2016-06-05T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: filegdb api - "UPPER" in sql query not working for Cyrrilic symbols</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701142#M1112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting problem... a lot of the web links suggest converting to Unicode first prior to using upper or lower, however, I don't know about sql, but see this python example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 13:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701142#M1112</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-05T13:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: filegdb api - "UPPER" in sql query not working for Cyrrilic symbols</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701143#M1113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and where it is (python example)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 17:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701143#M1113</guid>
      <dc:creator>OlegMaslenko</dc:creator>
      <dc:date>2016-06-05T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: filegdb api - "UPPER" in sql query not working for Cyrrilic symbols</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701144#M1114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search using&amp;nbsp;&amp;nbsp;&amp;nbsp; python upper unicode&amp;nbsp; for example, yields many threads and links eg.&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/727507/how-can-i-convert-unicode-to-uppercase-to-print-it" title="http://stackoverflow.com/questions/727507/how-can-i-convert-unicode-to-uppercase-to-print-it"&gt;http://stackoverflow.com/questions/727507/how-can-i-convert-unicode-to-uppercase-to-print-it&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 18:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701144#M1114</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-05T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: filegdb api - "UPPER" in sql query not working for Cyrrilic symbols</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701145#M1115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this method should not help! The word which must be founded I can do anything, but ho do like that&lt;/P&gt;&lt;P&gt;"SEARCH * FROM CITY WHERE UPPER(Encoding.UNICODE(TITLE)) = UPPER("SEARCHED_TEXT")"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 19:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701145#M1115</guid>
      <dc:creator>OlegMaslenko</dc:creator>
      <dc:date>2016-06-05T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: filegdb api - "UPPER" in sql query not working for Cyrrilic symbols</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701146#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, I am not worried about the query now, since that is the end goal, and not the root of the problem.&lt;/P&gt;&lt;P&gt;I will leave this for others to ponder so they can answer your question directly&lt;/P&gt;&lt;P&gt;Pay attention to the equality checks and the type tests&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; a = "КИЕВ"
&amp;gt;&amp;gt;&amp;gt; b = a.decode('utf-8')
&amp;gt;&amp;gt;&amp;gt; type(a)
&amp;lt;type 'str'&amp;gt;
&amp;gt;&amp;gt;&amp;gt; type(b)
&amp;lt;type 'unicode'&amp;gt;
&amp;gt;&amp;gt;&amp;gt; print(a)
КИЕВ
&amp;gt;&amp;gt;&amp;gt; print(b)
КИЕВ
&amp;gt;&amp;gt;&amp;gt; a == b # ?????
True
&amp;gt;&amp;gt;&amp;gt; c = "KIEV"
&amp;gt;&amp;gt;&amp;gt; type(c)
&amp;lt;type 'str'&amp;gt;
&amp;gt;&amp;gt;&amp;gt; a == c # ?????
False
&amp;gt;&amp;gt;&amp;gt; b == c # ??????
False&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/filegdb-api-quot-upper-quot-in-sql-query-not/m-p/701146#M1116</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T05:30:12Z</dc:date>
    </item>
  </channel>
</rss>

