<?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 Using an apostrophe in a Query in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19451#M93</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the query feature endpoint, I need to be able to search for records which contain an apostrophe in the data, for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Johnston's Subdivision&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;If I submit a query like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SUBDIVISION like '%johnston's%'&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The apostrophe in the middle ends up causing an error.&amp;nbsp; I have tried escaping it these two ways but neither worked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;\'

&amp;amp;apos;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried submitting double quotes like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SUBDIVISION like "%johnston's%"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;No luck with that either.&amp;nbsp; Does anyone know what the correct way to do this is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 14:08:26 GMT</pubDate>
    <dc:creator>JacksonTrappett</dc:creator>
    <dc:date>2011-09-26T14:08:26Z</dc:date>
    <item>
      <title>Using an apostrophe in a Query</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19451#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the query feature endpoint, I need to be able to search for records which contain an apostrophe in the data, for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Johnston's Subdivision&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;If I submit a query like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SUBDIVISION like '%johnston's%'&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The apostrophe in the middle ends up causing an error.&amp;nbsp; I have tried escaping it these two ways but neither worked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;\'

&amp;amp;apos;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried submitting double quotes like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SUBDIVISION like "%johnston's%"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;No luck with that either.&amp;nbsp; Does anyone know what the correct way to do this is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 14:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19451#M93</guid>
      <dc:creator>JacksonTrappett</dc:creator>
      <dc:date>2011-09-26T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using an apostrophe in a Query</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19452#M94</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using two single quotes 'Johnston''s Subdivision'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19452#M94</guid>
      <dc:creator>TroyNagle</dc:creator>
      <dc:date>2011-09-28T18:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using an apostrophe in a Query</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19453#M95</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That did the trick, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/19453#M95</guid>
      <dc:creator>JacksonTrappett</dc:creator>
      <dc:date>2011-10-03T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using an apostrophe in a Query</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/1396836#M4701</link>
      <description>&lt;P&gt;Had a similar experience, thanks for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 21:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-an-apostrophe-in-a-query/m-p/1396836#M4701</guid>
      <dc:creator>RandyBonds_Jr_</dc:creator>
      <dc:date>2024-03-15T21:17:48Z</dc:date>
    </item>
  </channel>
</rss>

