nakijun / qspatialite

Automatically exported from code.google.com/p/qspatialite
0 stars 0 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
--> What steps will reproduce the problem?

1. Create a Spatialite database on a folder with non ascii characters (accents, 
spaces, etc.) as name, or with that characters within the path to the folder, 
eg, /home/pedro/Área de Trabalho/dbtest.sqlite;
2. Create a SQL query;
3. Make 'Create Spatial Table & Load in QGIS'.

--> What is the expected output? What do you see instead?

I get the following error: 

An error has occured while executing Python code: 

Traceback (most recent call last): 
  File "/home/pedro/.qgis//python/plugins/QspatiaLite/QspatiaLiteApp.py", line 221, in runQuery 
    table[0].loadToQgis() 
  File "/home/pedro/.qgis//python/plugins/QspatiaLite/Classes/Table.py", line 76, in loadToQgis 
    print uri.uri() 
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position 
20: ordinal not in range(128) 

Python version: 
2.7.3 (default, Aug  1 2012, 05:27:35) 
[GCC 4.6.3] 

QGIS version: 
1.9.0-Master Master, exported 

--> What version of the product are you using? On what operating system?

QGIS version 1.9.0-Master
QSpatiaLite 6.0.4
Xubuntu 12.04

Original issue reported on code.google.com by pedrongv...@gmail.com on 8 Dec 2012 at 10:58

GoogleCodeExporter commented 9 years ago
Issue Fixed in V6.0.5

(let me know if it's not the case)

Original comment by romain.r...@gmail.com on 11 Dec 2012 at 3:35

GoogleCodeExporter commented 9 years ago
Fix confirmed! 

Thanks a lot Romain! 

Original comment by pedrongv...@gmail.com on 30 Dec 2012 at 2:59