Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Python String Symbols

$
0
0
In ArcGIS 10.1 - python 2.7 this use to work:

arcpy.CalculateField_management(CenterPoint,LongDMS,"!DMSLon![1:3] + \"º\" + !DMSLon![4:6] + \"'\" + !DMSLon![7:9] + \"'' \" + !DMSLon![15]","PYTHON")

However it fails in ArcGIS 10.2 - python 2.7

I have narrowed down the problem to the degree symbol. I got the symbol in Python by holding down ALT and entering in 167. Any ideas why this now fails when I run my toolbox script with this and how to fix it? Or any suggestions for a work around?

Your help is much appreciated.

Viewing all articles
Browse latest Browse all 2485

Trending Articles