<?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 Calculate Field with Quotation marks &amp;amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-field-with-quotation-marks-amp-quot/m-p/106209#M8197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to do a find and replace in text fields that contain double quotes ("). I'm field calculating the text fields into fields with a smaller field length because the original fields have a field length of 214 million (LA County Assessors DS04). Unfortunately, when scripting the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(dso4,newField,!newField!.replace(""","'"),'PYTHON') &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't work because it reads it as a triple string literal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I even tried using the \ character to ignore the "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"!Legal_Description_Line1!.replace(\"\"\",\"\'\")"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error returns: EOF while scanning triple-quoted string literal (&amp;lt;string&amp;gt;, line 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it even possible to field calculate string fields that contain double quotation marks (")?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 14:40:14 GMT</pubDate>
    <dc:creator>ChadMarch1</dc:creator>
    <dc:date>2012-10-29T14:40:14Z</dc:date>
    <item>
      <title>Calculate Field with Quotation marks &amp;quot;</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-with-quotation-marks-amp-quot/m-p/106209#M8197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to do a find and replace in text fields that contain double quotes ("). I'm field calculating the text fields into fields with a smaller field length because the original fields have a field length of 214 million (LA County Assessors DS04). Unfortunately, when scripting the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(dso4,newField,!newField!.replace(""","'"),'PYTHON') &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't work because it reads it as a triple string literal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I even tried using the \ character to ignore the "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"!Legal_Description_Line1!.replace(\"\"\",\"\'\")"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error returns: EOF while scanning triple-quoted string literal (&amp;lt;string&amp;gt;, line 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it even possible to field calculate string fields that contain double quotation marks (")?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-with-quotation-marks-amp-quot/m-p/106209#M8197</guid>
      <dc:creator>ChadMarch1</dc:creator>
      <dc:date>2012-10-29T14:40:14Z</dc:date>
    </item>
  </channel>
</rss>

