Questions tagged [unicodeencodeerror]

UnicodeEncodeError, is a built-in exception for Python which is raised when a unicode-related encoding or decoding error occurs.

Filter by
Sorted by
Tagged with
1
vote
2answers
52 views

Saving layer files and ignoring special characters using ArcPy/Python?

I'm trying to save all layers in my ArcMap mxd as .lyr files using the script below. However, I'm getting an error because some group layer names contain special characters (e.g. © : * ) and cannot ...
0
votes
1answer
67 views

selection by location with search cursor

import arcpy arcpy.env.overwriteOutput = True points = r'C:\Users\Temitope\PycharmProjects\Scripts\DATA\ne_10m_populated_places_simple.shp' countries = r'C:\Users\Temitope\PycharmProjects\Scripts\...
1
vote
0answers
66 views

UnicodeEncodeError when creating Grass location on Windows

i´d tried to create a new location, but i have this in my console, iím learning to use grass gis, so can you help me? SIG\Archivos Grass\newLocation> no disponible Iniciando GRASS GIS... ERROR:...
2
votes
1answer
416 views

GRASS 7.2.0 doesn't start on PC

when I want to start the program a black window opens and show me the next message: Traceback (most recent call last): File "C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.0\etc\grass72.py", line 1971,...
4
votes
2answers
584 views

QGIS python error using qgis2leaf and qgis2web

I'm trying to export a project using qgis2leaf and this error appears: An error has occurred while executing Python code: Traceback (most recent call last): File "C:/Users/grego/.qgis2/python/...
2
votes
2answers
972 views

Python Error in QGIS

I got this error message when I tried to perfoming a spatial join. An error has occured while executing Python code : Traceback (most recent call last): File "C:/Users/Laurent/.qgis2/python/plugins\...
4
votes
1answer
3k views

Python encoding error in ArcPy

I am writing a JSON file, as string input, using python, into a .json file in the file system. However I am getting the following error sometimes and I don't know why. Any ideas? UnicodeEncodeError:...
2
votes
0answers
935 views

Cause of Field Calculator UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 5: ordinal not in range(128)? [closed]

def Befahrung(value1,value2): if value1 is ' ': return ' ' else: return "G:\\Example\\" + str(value1) + "\\File_" + str(value2) + ".pdf" I try to create a field with a hyperlink. It works ...
9
votes
3answers
8k views

Replacing non-English characters in attribute tables using ArcPy and Python?

I have a few shapefiles where some of the attributes contain the non-English characters ÅÄÖ. Since some queries doesn't work with these characters (specifically ChangeDetector), I tried to change them ...
4
votes
1answer
1k views

Getting unicode encode error in ArcPy/Python script?

When I am running a script (it checks to which database a mxd is connected) I get the following error: return codecs.charmap_encode(input,errors,encoding_table) UnicodeEncodeError: 'charmap' codec ...