<?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: How to handle spaces and special characters in arcpy.Select_analysis? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219075#M16854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd just use a backslash as an escape character, that way it doesn't try doesn't crash since there isn't a second single quote to end the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var = ["\'Name"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally it not advisable to have special characters in field names, or to have them start with numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 18:19:17 GMT</pubDate>
    <dc:creator>IanMurray</dc:creator>
    <dc:date>2014-07-25T18:19:17Z</dc:date>
    <item>
      <title>How to handle spaces and special characters in arcpy.Select_analysis?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219074#M16853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I handle ' in an attribute table using python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14063115429936812 jive_text_macro" jivemacro_uid="_14063115429936812" modifiedtitle="true"&gt;
&lt;P&gt;var = ["'Name"]&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 18:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219074#M16853</guid>
      <dc:creator>ChrisBrannin</dc:creator>
      <dc:date>2014-07-25T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle spaces and special characters in arcpy.Select_analysis?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219075#M16854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd just use a backslash as an escape character, that way it doesn't try doesn't crash since there isn't a second single quote to end the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var = ["\'Name"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally it not advisable to have special characters in field names, or to have them start with numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 18:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219075#M16854</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-25T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle spaces and special characters in arcpy.Select_analysis?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219076#M16855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the idea!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working code below:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14065526753197727 jive_text_macro" jivemacro_uid="_14065526753197727" modifiedtitle="true"&gt;var = ["'\'Name"]
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 12:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219076#M16855</guid>
      <dc:creator>ChrisBrannin</dc:creator>
      <dc:date>2014-07-28T12:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle spaces and special characters in arcpy.Select_analysis?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219077#M16856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I avoid escape characters by using triple quotes. It is so much easier and more legible.&lt;BR /&gt; Except when it is the first character when it is a bit hard to see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-handle-spaces-and-special-characters-in/m-p/219077#M16856</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2014-08-22T13:55:38Z</dc:date>
    </item>
  </channel>
</rss>

