2

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?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Apr 21, 2015 at 10:11
1
  • 2
    Does your layer or filename contain accents (eg. Á, è, ö etc)? This could be a reason you receive a unicode error. Commented Apr 21, 2015 at 10:17

2 Answers 2

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.

answered Apr 21, 2015 at 11:12
1

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

answered Feb 9, 2017 at 13:32
2
  • 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 characters Commented 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. Commented Dec 22, 2017 at 9:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.