I am trying to use the labeling process to display latitude and longitudes for a set of data points. To make the labels appear formal, I wish to add the degree symbol (°) to the labels. My python syntax goes as follows:

[lat] + "," +" " + [long] and the result is 30.392634, -91.118229.

However, when I attempt to insert the symbol as follows:

[lat] + "°" + "," +" " + [long] + "°" I keep receiving an error.

I am not a code wizard.

closed as off-topic by PolyGeo Feb 4 '18 at 22:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    What is the error message that you receive? – PolyGeo Dec 15 '17 at 19:42
  • 1
    What version of ArcMap? What error message do you get? I get no error message - it works fine for me - but I am using ArcGIS 10.6. It may be something that has been fixed recently? – Midavalo Dec 23 '17 at 22:29

Try this:

[lat] + u'\u00B0' + ', ' + [long] + u'\u00B0'


I know that you specified that you want to use Python for the labelling, but for a short term work around, why not use VBScript?

[lat] & "°, "& [long] & "°"

enter image description here


Arcmap python has unicode support so you can use the unicode \u00B0 to enter it.

u"str({0})+'\u00B0  '+str({1})+'\u00B0'".format('!lat!','!long!')
  • 2
    This works if you get rid of all the str(), +, and single quotes – GISUser9 Dec 14 '17 at 16:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.