<?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 Possible Unicode Error?&amp;nbsp; Field Calculator Help!! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34810#M2720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting funny symbols when I do a simple field calculate on a unicode field in a file geodatabase.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(outFileThree, "HOTLINK", "!HOTLINK!.lower()", "PYTHON_9.3", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and get funny little L or upside down Ls in the field where there were \ characters or \0s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I field calculate correctly field calculate and why is this happening?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 12:39:02 GMT</pubDate>
    <dc:creator>MaryM</dc:creator>
    <dc:date>2014-03-05T12:39:02Z</dc:date>
    <item>
      <title>Possible Unicode Error?  Field Calculator Help!!</title>
      <link>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34810#M2720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting funny symbols when I do a simple field calculate on a unicode field in a file geodatabase.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(outFileThree, "HOTLINK", "!HOTLINK!.lower()", "PYTHON_9.3", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and get funny little L or upside down Ls in the field where there were \ characters or \0s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I field calculate correctly field calculate and why is this happening?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34810#M2720</guid>
      <dc:creator>MaryM</dc:creator>
      <dc:date>2014-03-05T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Unicode Error?  Field Calculator Help!!</title>
      <link>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34811#M2721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it's not working because python sees / as an escape character. It turns /0 into a special character (that's show up odd in your attribute table). I couldn't find an easy and functional solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As much as I hate to say so, the easiest fix might be to just use vb script instead of python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.CalculateField_management(outFileThree, "HOTLINK", "LCase( [HOTLINK] )", "VB", "")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know how it goes!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34811#M2721</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2014-03-05T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Unicode Error?  Field Calculator Help!!</title>
      <link>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34812#M2722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After several days of trying and finally posting and then I just figured it out...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; arcpy.CalculateField_management(lyr, "TestHotlink","r!HOTLINK!.lower()", "PYTHON_9.3", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I kept trying things like r(!HOTLINK!) which did not work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-unicode-error-nbsp-field-calculator-help/m-p/34812#M2722</guid>
      <dc:creator>MaryM</dc:creator>
      <dc:date>2014-03-05T14:14:02Z</dc:date>
    </item>
  </channel>
</rss>

