<?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: Labels not showing special characters in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270087#M66993</link>
    <description>&lt;P&gt;The attributes are fine, just those few special characters change from&amp;nbsp;ʔ to ?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 20:42:29 GMT</pubDate>
    <dc:creator>JordanSeider</dc:creator>
    <dc:date>2023-03-21T20:42:29Z</dc:date>
    <item>
      <title>Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270012#M66979</link>
      <description>&lt;P&gt;I have labels on my map that contain special characters as parts of place names (examples:&amp;nbsp;&lt;SPAN&gt;ʔ,&amp;nbsp;·,&amp;nbsp;ⱡ). They appear correct in the attribute table but on the display and when I export as a PDF, the characters change to "?".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270012#M66979</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T19:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270015#M66981</link>
      <description>&lt;P&gt;make sure eyou are using the right formatting in your label expressions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/td-p/539055" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/td-p/539055&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270015#M66981</guid>
      <dc:creator>SLouq</dc:creator>
      <dc:date>2023-03-21T19:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270022#M66982</link>
      <description>&lt;P&gt;Unfortunately, I cannot find any HTML codes for the characters I need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:22:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270022#M66982</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T19:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270026#M66983</link>
      <description>&lt;P&gt;Have you tried other fonts that contain those special characters?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270026#M66983</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-03-21T19:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270038#M66985</link>
      <description>&lt;P&gt;Okay, I have found the relevant HTML codes. My label expression is as follows but no matter what font I try, it does not change the label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Function FindLabel ([CmmntN1])
   NewString = Replace([CmmntN1], "ⱡ", "&amp;amp;#11361;")
   NewString = Replace([CmmntN1], "ʔ", "&amp;amp;#660;")
   NewString = Replace([CmmntN1], "·", "&amp;amp;#183;")
   FindLabel = NewString
End Function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270038#M66985</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270041#M66987</link>
      <description>&lt;P&gt;Now I realize, even after updating the attribute table with the correct symbols and saving the edits, when I reopen the attribute table, the characters return to ?.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270041#M66987</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T19:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270047#M66989</link>
      <description>&lt;P&gt;If you are not getting attributes in your attribute table the only thing I can think of is the data type for that field is wrong.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270047#M66989</guid>
      <dc:creator>SLouq</dc:creator>
      <dc:date>2023-03-21T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270087#M66993</link>
      <description>&lt;P&gt;The attributes are fine, just those few special characters change from&amp;nbsp;ʔ to ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 20:42:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270087#M66993</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T20:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270091#M66994</link>
      <description>&lt;P&gt;Look at your field length in field view&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 20:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270091#M66994</guid>
      <dc:creator>SLouq</dc:creator>
      <dc:date>2023-03-21T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270103#M66995</link>
      <description>&lt;P&gt;Field is "text" and length is 80&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 21:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270103#M66995</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T21:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270170#M66998</link>
      <description>&lt;P&gt;Had to manually change the special characters to a different, unique string of characters (eg., "$#a", "$#b", etc.). Then, I managed some success with&amp;nbsp;a label expression in Python:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def FindLabel([Label]):
    new = [Label].replace("$#a", "ʔ").replace("$#b", "q̓").replace("$#c", "ō").replace("$#c", "ō").replace("$#d", "á").replace("$#e", "é").replace("$#f", "ŝ").replace("$#g", "ś").replace("$#h", "ū").replace("$#i", "·").replace("$#j", "ⱡ")
    return new&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: I would write the Label field for "ab&lt;SPAN&gt;ʔcⱡde" as "ab$#ac$#jde" and then use the expression above to plot the labels with the correct characters.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 23:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270170#M66998</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-21T23:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270483#M67036</link>
      <description>&lt;P&gt;Happy to hear it's resolved. Although I think there should be a better way for the first part to not do that manually. I will add that later if I figure out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, to make this function more general to work in other cases and also to avoid writing very long lines which are hard to read and are prone to error,&amp;nbsp; you can define all the changes in a dictionary and pass the key and value pairs of that dictionary to replace().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# a dictionary that can define required changes
# This way it can be edited easily
changes = {"$#a": "ʔ",
           "$#b": "q̓",
           "$#c": "ō",
           "$#c": "ō",
           "$#d": "á",
           "$#e": "é",
           "$#f": "ŝ",
           "$#g": "ś",
           "$#h": "ū",
           "$#i": "·",
           "$#j": "ⱡ"}

def fix_label_char(label:str, change_dict:dict, report:bool=False)-&amp;gt;str:
    """Takes a str(text)and a dictionry of changes
        then applies it to the text and
        returns the new text (if any changes made),
        otherwise original text gets returned.
        It can also print the changes if report=True 
        report is off by default """
    
    new_label = label
    for key,val in change_dict.items():
        new_label = new_label.replace(key, val)
    
    # report section
    if label == new_label and report: 
        print(f'No changes applied to {label}!')
    elif label != new_label and report: 
        print(f'Changed {label} ---&amp;gt; {new_label}')
    else:
        pass
        
    return new_label&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 17:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270483#M67036</guid>
      <dc:creator>Mahdi_Ch</dc:creator>
      <dc:date>2023-03-22T17:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing special characters</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270502#M67037</link>
      <description>&lt;P&gt;Thanks! And yes, my coding experience is limited to R so I kind of just brute-forced my way through StackExchange to make that expression for this particular use-case. I just wished that the Arc attribute table would preserve the special characters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 17:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labels-not-showing-special-characters/m-p/1270502#M67037</guid>
      <dc:creator>JordanSeider</dc:creator>
      <dc:date>2023-03-22T17:02:59Z</dc:date>
    </item>
  </channel>
</rss>

