Is ArcGIS 10.0 compatible with Python Unicode strings?

699
0
01-25-2011 05:02 AM
TiCrossman
New Contributor
I am developing an ArcMap automation script using Python 2.6.5 and ArcObjects.  In the script I use a call to re.split() (regular expression module, split a string) and get back the usual list of substrings.  Each substring, however, is a unicode string, for example u'N5'.  When I pass this string into an ArcObjects function or assign its value to something, ArcGIS throws an error.  Cannot ArcGIS handle unicode strings--even though I'm using the Python version that came with ArcGIS--or does it handle them just fine and I should be looking for another problem elsewhere?  If it's a Python thing, then I would like to hear any suggestions you all might have, but I will also be asking about the Python part elsewhere in a more appropriate forum.
0 Kudos
0 Replies