<?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: Layer Description to Text Tile in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532073#M41678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I changed the script to try to account for the group layers but it only displays the description for the layer at the very bottom of the group layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, string, os, arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Data: Declare environment variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = workspace = r"V:\gislu\_PlanX\Python"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output = r"V:\gislu\_PlanX\Python\Temp.txt"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Create Output Text File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outFile = open (output , "w")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Reference MXD and Data Frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"V:\gislu\_PlanX\Python\PlanXLayers.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames (mxd, "Layers") [0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Reference each layer in data frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyrList = arcpy.mapping.ListLayers(mxd, "", df)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for lyr in lyrList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\t\t LAYER: " + lyr.longName + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if lyr.isGroupLayer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\t\t\t Description: " + lyr.description + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("t\t\t Description: N/A")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 13:55:58 GMT</pubDate>
    <dc:creator>MollyWatson</dc:creator>
    <dc:date>2011-10-07T13:55:58Z</dc:date>
    <item>
      <title>Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532065#M41670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to Python and have been researching the forums and other websites for tips on writing a Python code to get the layer descriptions from layers in an MXD and output those descriptions in a text file. This is what I have so far, but I am getting an exceptions.AttributeError 'str' object has no attribute '_arc_object'. I'm not sure what that error means or how to correct it.&amp;nbsp; Thanks for any help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, string, os, arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Data: Declare environment variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = workspace = r"V:\gislu\_PlanX\Layer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output = r"V:\gislu\_PlanX\Temp.txt"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Create Output Text File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outFile = open (output , "w")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Reference MXD and Data Frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("Current")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames ("Layers") [0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Reference each layer in data frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyrList = arcpy.mapping.ListLayers(mxd, "", df)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for lyr in lyrList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\t\t LAYER: " + lyr.name + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if lyr.supports("DESCRIPTION"):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\t\t\t Description: " + lyr.description + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("t\t\t Description: N/A \ n")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 17:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532065#M41670</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-05T17:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532066#M41671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like the problem is with your 'df' variable.&amp;nbsp;&amp;nbsp; You will need to reference the MXD and then the data frame.&amp;nbsp; Change it to the following and I believe everything should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;df = arcpy.mapping.ListDataFrames (mxd, "Layers") [0]&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 17:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532066#M41671</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2011-10-05T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532067#M41672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;#Reference MXD and Data Frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mxd = arcpy.mapping.MapDocument("Current")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the "CURRENT" keyword works only if you run the script from within the pythonwindow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you run your script from outside arcgis you must put the path/to/mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and, when declaring the df:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames ("Layers") [0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames (mxd) [0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 18:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532067#M41672</guid>
      <dc:creator>AlessandroCinnirella</dc:creator>
      <dc:date>2011-10-05T18:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532068#M41673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. Your suggestions made the script run successfully. However, the output text file only contains the layer names and not the descriptions.&amp;nbsp; I've attached it so you can see. Most of the layers have layer descriptions so they should show up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 14:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532068#M41673</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-06T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532069#M41674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I couldn't replicate this issue... are you sure you have layer descriptions (just checking)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously all of you layers support descriptions, or you'd be getting "Description N/A" somewhere...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 14:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532069#M41674</guid>
      <dc:creator>RyanKelley</dc:creator>
      <dc:date>2011-10-06T14:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532070#M41675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out the following sample scripts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=A910AB18-1422-2418-3418-3885D388EF60"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=A910AB18-1422-2418-3418-3885D388EF60&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are some reporting tools that do exactly what you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532070#M41675</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-10-07T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532071#M41676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes all but 3 of layers have descriptions. When I ran it again this morning, one description showed up but no others. And for the 3 layers with no descriptions, there was no N/A after it.&amp;nbsp; Did the script work with your data when you tried to replicate the error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532071#M41676</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-07T13:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532072#M41677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if it is an issue with group layers. The one layer description that did show up was not a group layer.&amp;nbsp; Most of the other layers in the MXD are group layers and the descriptions are not showing up. When you ran the script, were your layers group layers or single layer files?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532072#M41677</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-07T13:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532073#M41678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I changed the script to try to account for the group layers but it only displays the description for the layer at the very bottom of the group layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, string, os, arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Data: Declare environment variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = workspace = r"V:\gislu\_PlanX\Python"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output = r"V:\gislu\_PlanX\Python\Temp.txt"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Create Output Text File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outFile = open (output , "w")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Reference MXD and Data Frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"V:\gislu\_PlanX\Python\PlanXLayers.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames (mxd, "Layers") [0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Reference each layer in data frame&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyrList = arcpy.mapping.ListLayers(mxd, "", df)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for lyr in lyrList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\t\t LAYER: " + lyr.longName + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if lyr.isGroupLayer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("\t\t\t Description: " + lyr.description + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile.write("t\t\t Description: N/A")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532073#M41678</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-07T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532074#M41679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks the layer reporting script helped. I basically copied and pasted the items I want the report to show but I get an error on line 39 "UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 100: ordinal not in range(128) 'ascii' codec can't encode character u'\u2019' in position 100: ordinal not in range(128)." Do you know what this means?&amp;nbsp; My new script is attached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 14:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532074#M41679</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-07T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532075#M41680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible that your layer description is a number?&amp;nbsp; Could you try changing line 39 to something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outFile.write("\t\t\t Description: " + str(lyr.description) + "\n")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2011 01:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532075#M41680</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-10-09T01:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532076#M41681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff, thanks for the suggestion. I copied your suggestion for line 39 and got a new error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UnicodeEncodeError: 'ascii' coded can't encode character u'\u2019' in position 83: ordinal not in range(128)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 15:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532076#M41681</guid>
      <dc:creator>MollyWatson</dc:creator>
      <dc:date>2011-10-10T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Description to Text Tile</title>
      <link>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532077#M41682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you tell me what the value of your description is?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print lyr.description&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 19:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-description-to-text-tile/m-p/532077#M41682</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-10-11T19:28:50Z</dc:date>
    </item>
  </channel>
</rss>

