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\spatialJoin\spatialjoin.py", line 186, in applyJoin
self.tra.ce( exp)
File "C:/Users/Laurent/.qgis2/python/plugins\spatialJoin\spatialjoin.py", line 45, in ce
print string
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 17: ordinal not in range(128)
Python Version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS Version: 2.8.1-Wien Wien, exported
Any idea on this?
2 Answers 2
This error is usually caused by presence of some characters that are not understood in the content. example: non-english letters First check for these characters in your code and replace them.
This Error very common in Turkish Language. Need to check Turkish character use in Folder Names.
.....
Türkçe kullananlar için sıklıkla karşılaşılan bir hata. Türkçe dosya isimlerinde Türkçe Karakter kullanmaktan kaçınarak bu sorun aşılabilir
-
This seems to confirm what might cause the issue, but doesn't suggest any solution. What do you do if you find that you are using such charactersnmtoken– nmtoken2017年02月09日 14:36:28 +00:00Commented Feb 9, 2017 at 14:36
-
I change the folder name and it solve this problem. I dont know another way to solve the problem.Can Bayat– Can Bayat2017年12月22日 09:15:16 +00:00Commented Dec 22, 2017 at 9:15
Explore related questions
See similar questions with these tags.
unicode
error.