Generate Spatial Weights Matrix error in ArcGIS 10.2

Discussion created by goerlich on Mar 28, 2014
Latest reply on Jul 29, 2015 by SWalbridge-esristaff
I have been unable to run the Generate Spatial Weights Matrix in ArcGIS 10.2.
I always get the same error:

Executing: GenerateSpatialWeightsMatrix D:\GIS\CNIG\Equipamiento_Geográfico_Referencia_Nacional\lineas_limite_2011Mayo\ETRS89_LAEA\Municipios2006_ETRS89_LAEA.shp INENumMuni D:\GIS\CNIG\Equipamiento_Geográfico_Referencia_Nacional\lineas_limite_2011Mayo\ETRS89_LAEA\Municipios2006_ETRS89_LAEA.swm CONTIGUITY_EDGES_CORNERS EUCLIDEAN 1 # 0 NO_STANDARDIZATION # # # #
Start Time: Sat Mar 29 01:42:52 2014
Running script GenerateSpatialWeightsMatrix...
Constructing spatial weights based on polygon contiguity (Edges or Corners)....

Traceback (most recent call last):
  File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts\Weights.py", line 910, in <module>
  File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts\Weights.py", line 110, in setupWeights
    contiguityType = "QUEEN")
  File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts\Weights.py", line 201, in polygon2SWM
    numNeighs = kNeighs)
  File "C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts\WeightsUtilities.py", line 203, in __init__
  File "C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts\WeightsUtilities.py", line 261, in setHeader
    header = NUM.array([header], '<c')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 0: ordinal not in range(128)

Failed to execute (GenerateSpatialWeightsMatrix).
Failed at Sat Mar 29 01:43:24 2014 (Elapsed Time: 31.68 seconds)

I am not sure if this is an error from ArcGIS or a configuration error with Python.

Thanks in advance for any help.