On Wednesday, 14 September 2016 06:35:32 UTC+2, Paul wrote:I have seen that spatialite_gui 2.0.0-devel with either Spatialite 4.3.0a or Spatialite 4.4.0-RC was unable to open sqlite3 database files whose full path contains characters, such as Chinese, other than ANSI codes. In the meanwhile, Firefox Add-on, SQLite Manager, can successfully open the sqlite3 database files. I am on Windows 10, which shall be using Unicode.I have a little Windows application which is having the same trouble if it is compiled with ANSI (or MBCS) code. However when it is compiled with UNICODE, it have no problem to open the same sqlite3 database files.Could the problem spatialite_gui 2.0.0-devel is having result from the file path being not properly encoded?Could you send a zip files which has an 'offending' path included in it together with the file (database)?Does this happen if the database file-name also have 'offending' characters?- this would also be interesting to test- I cannot test this for windows, but can for linux and android-- which could help in narrowing down the problem(just saw your second note)I know that wxWindows has problems with unicode in some versions (wxWidgets version 3.0.2)- it brings a warning the first time that be answered with 'ignore' or 'continue'-- so the wxWindows version you are using would also be helpfull
On Wednesday, 14 September 2016 06:35:32 UTC+2, Paul wrote:I have seen that spatialite_gui 2.0.0-devel with either Spatialite 4.3.0a or Spatialite 4.4.0-RC was unable to open sqlite3 database files whose full path contains characters, such as Chinese, other than ANSI codes. In the meanwhile, Firefox Add-on, SQLite Manager, can successfully open the sqlite3 database files. I am on Windows 10, which shall be using Unicode.I have a little Windows application which is having the same trouble if it is compiled with ANSI (or MBCS) code. However when it is compiled with UNICODE, it have no problem to open the same sqlite3 database files.Could the problem spatialite_gui 2.0.0-devel is having result from the file path being not properly encoded?Could you send a zip files which has an 'offending' path included in it together with the file (database)?Does this happen if the database file-name also have 'offending' characters?- this would also be interesting to test- I cannot test this for windows, but can for linux and android-- which could help in narrowing down the problem(just saw your second note)I know that wxWindows has problems with unicode in some versions (wxWidgets version 3.0.2)- it brings a warning the first time that be answered with 'ignore' or 'continue'
I have seen that spatialite_gui 2.0.0-devel with either Spatialite 4.3.0a or Spatialite 4.4.0-RC was unable to open sqlite3 database files whose full path contains characters, such as Chinese, other than ANSI codes.
El miércoles, 14 de septiembre de 2016, 6:35:32 (UTC+2), Paul escribió:I have seen that spatialite_gui 2.0.0-devel with either Spatialite 4.3.0a or Spatialite 4.4.0-RC was unable to open sqlite3 database files whose full path contains characters, such as Chinese, other than ANSI codes.
I can replicate this in Windows 7. Just rename any working database and put a "ñ" anywhere in the name and try to connect to it from spatialite_gui, after clicking "Open" in the file dialog I get an error message:
-------------------------------------------
Unable to connect:
c:\path\to\dbñ.sqlite
sqlite3 test_ogr_kml/dbñ.sqliteSQLite version 3.8.5 2014-06-04 14:06:34Enter ".help" for usage hints.sqlite> .tablesElementaryGeometries HK_berlin_3068 SpatialIndex berlin_admin berlin_admin_changed_belongs
... many, many, more
virts_geometry_columns_statistics spatialite>
On Thursday, 15 September 2016 08:46:09 UTC+2, Goyo wrote:El miércoles, 14 de septiembre de 2016, 6:35:32 (UTC+2), Paul escribió:I have seen that spatialite_gui 2.0.0-devel with either Spatialite 4.3.0a or Spatialite 4.4.0-RC was unable to open sqlite3 database files whose full path contains characters, such as Chinese, other than ANSI codes.
I can replicate this in Windows 7. Just rename any working database and put a "ñ" anywhere in the name and try to connect to it from spatialite_gui, after clicking "Open" in the file dialog I get an error message:
-------------------------------------------
Unable to connect:
c:\path\to\dbñ.sqliteand what happens if you call it directly with sqlite3 of spatialite?
sqlite3 test_ogr_kml/dbñ.sqliteSQLite version 3.8.5 2014-06-04 14:06:34Enter ".help" for usage hints.sqlite> .tablesElementaryGeometriesHK_berlin_3068SpatialIndexberlin_adminberlin_admin_changed_belongs
... many, many, morevirts_geometry_columns_statisticsspatialite>
both work correctly for me in linux.Also 'spatialite_gui test_ogr_kml/dbñ.sqlite'
El miércoles, 14 de septiembre de 2016, 6:35:32 (UTC+2), Paul escribió:I have seen that spatialite_gui 2.0.0-devel with either Spatialite 4.3.0a or Spatialite 4.4.0-RC was unable to open sqlite3 database files whose full path contains characters, such as Chinese, other than ANSI codes.
I can replicate this in Windows 7. Just rename any working database and put a "ñ" anywhere in the name and try to connect to it from spatialite_gui, after clicking "Open" in the file dialog I get an error message:
-------------------------------------------
Unable to connect:
c:\path\to\dbñ.sqlite
Not existing file or forbidden access
-------------------------------------------
And the program does not connect to the database.
and what happens if you call it directly with sqlite3 of spatialite?
d:\users\goyo\test>dir
El volumen de la unidad D es Data
El número de serie del volumen es: F44A-C483
Directorio de d:\users\goyo\test
20/09/2016 09:53 <DIR> .
20/09/2016 09:53 <DIR> ..
29/10/2009 01:55 2.128.896 regions.sqlite
12/09/2016 21:12 682.496 sqlite3.exe
2 archivos 2.811.392 bytes
2 dirs 13.309.505.536 bytes libres
d:\users\goyo\test>copy regions.sqlite regioñs.sqlite
1 archivo(s) copiado(s).
d:\users\goyo\test>dir
El volumen de la unidad D es Data
El número de serie del volumen es: F44A-C483
Directorio de d:\users\goyo\test
20/09/2016 09:53 <DIR> .
20/09/2016 09:53 <DIR> ..
29/10/2009 01:55 2.128.896 regions.sqlite
29/10/2009 01:55 2.128.896 regioñs.sqlite
12/09/2016 21:12 682.496 sqlite3.exe
3 archivos 4.940.288 bytes
2 dirs 13.307.310.080 bytes libres
d:\users\goyo\test>sqlite3 regions.sqlite
SQLite version 3.14.2 2016-09-12 18:50:49
Enter ".help" for usage hints.
sqlite> .tables
Aeroporti layer_sub_classes spatial_ref_sys
geom_cols_ref_sys layer_table_layout symbol_bitmaps
geometry_columns pattern_bitmaps views_geometry_columns
geometry_columns_auth project_defs virts_geometry_columns
layer_params raster_pyramids
layer_statistics reg2008_s
sqlite> .quit
d:\users\goyo\test>sqlite3 regioñs.sqlite
SQLite version 3.14.2 2016-09-12 18:50:49
Enter ".help" for usage hints.
sqlite> .
tables
sqlite> .quit
d:\users\goyo\test>dir
El volumen de la unidad D es Data
El número de serie del volumen es: F44A-C483
Directorio de d:\users\goyo\test
20/09/2016 09:54 <DIR> .
20/09/2016 09:54 <DIR> ..
29/10/2009 01:55 2.128.896 regions.sqlite
29/10/2009 01:55 2.128.896 regioñs.sqlite
20/09/2016 09:54 0 regio?s.sqlite
12/09/2016 21:12 682.496 sqlite3.exe
4 archivos 4.940.288 bytes
2 dirs 13.307.506.688 bytes libres
d:\users\goyo\test>sqlite3
SQLite version 3.14.2 2016-09-12 18:50:49
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open regioñs.sqlite
sqlite> .tables
Aeroporti layer_sub_classes spatial_ref_sys
geom_cols_ref_sys layer_table_layout symbol_bitmaps
geometry_columns pattern_bitmaps views_geometry_columns
geometry_columns_auth project_defs virts_geometry_columns
layer_params raster_pyramids
layer_statistics reg2008_s
sqlite> .quit
d:\users\goyo\test>spatialite_gui regioñs.sqlite
El jueves, 15 de septiembre de 2016, 8:59:59 (UTC+2), mj10777 escribió:and what happens if you call it directly with sqlite3 of spatialite?
Actually sqlite3 also has their own problems with this in Windows 7: If a file name with non-ASCII characters is provided in the command line, a new file with the non-ASCII characters replaced by "?" is created and open:
The file system is NTFS.
Regards
Goyo
Could you try this with spatialite?spatialite regioñs.sqliteI expect the same result, but would be nice to know.
Do you have a FAT file-system- if yes, please try the same combinations
El martes, 20 de septiembre de 2016, 10:36:46 (UTC+2), mj10777 escribió:Could you try this with spatialite?spatialite regioñs.sqliteI expect the same result, but would be nice to know.
Not sure what you mean, I thought the spatialite cli was abandoned and it was reccommended using sqlite3 and then loading the spatialite extension.
Not sure what you mean, I thought the spatialite cli was abandoned and it was reccommended using sqlite3 and then loading the spatialite extension.- it has not been abandoned, but will not be extended with spatial-specific macros
E:\test>sqlite3 regioñs.sqlite
SQLite version 3.14.2 2016-09-12 18:50:49
Enter ".help" for usage hints.
sqlite> .tables
sqlite> .
quit
E:\test>dir
El volumen de la unidad E no tiene etiqueta.
El número de serie del volumen es: EB6C-61CB
Directorio de E:\test
27/09/2016 08:32 <DIR> .
27/09/2016 08:32 <DIR> ..
29/10/2009 01:55 2.128.896 regions.sqlite
29/10/2009 01:55 2.128.896 regioñs.sqlite
07/09/2015 17:18 32.584.206 spatialite_gui.exe
12/09/2016 21:12 682.496 sqlite3.exe
30/09/2016 12:10 13.012.494 spatialite.exe
30/09/2016 12:13 0 regio?s.sqlite
6 archivos 50.536.988 bytes
E:\test>sqlite3
SQLite version 3.14.2 2016-09-12 18:50:49
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open regioñs.sqlite
sqlite> .tables
Aeroporti
layer_sub_classes spatial_ref_sys
geom_cols_ref_sys layer_table_layout symbol_bitmaps
geometry_columns pattern_bitmaps views_geometry_columns
geometry_columns_auth project_defs virts_geometry_columns
layer_params raster_pyramids
layer_statistics reg2008_s
E:\test>spatialite regioñs.sqlite
SpatiaLite version ..: 4.3.0a Supported Extensions:
- 'VirtualShape' [direct Shapefile access]
- 'VirtualDbf' [direct DBF access]
- 'VirtualXL' [direct XLS access]
- 'VirtualText' [direct CSV/TXT access]
- 'VirtualNetwork' [Dijkstra shortest path]
- 'RTree' [Spatial Index - R*Tree]
- 'MbrCache' [Spatial Index - MBR cache]
- 'VirtualSpatialIndex' [R*Tree metahandler]
- 'VirtualElementary' [ElemGeoms metahandler]
- 'VirtualXPath' [XML Path Language - XPath]
- 'VirtualFDO' [FDO-OGR interoperability]
- 'VirtualGPKG' [OGC GeoPackage interoperability]
- 'VirtualBBox' [BoundingBox tables]
- 'SpatiaLite' [Spatial SQL - OGC]
PROJ.4 version ......: Rel. 4.9.1, 04 March 2015
GEOS version ........: 3.5.0-CAPI-1.9.0 r4084
LWGEOM version ......: 2.1.7
TARGET CPU ..........: mingw32
the SPATIAL_REF_SYS table already contains some row(s)
SQLite version ......: 3.8.11.1
Enter ".help" for instructions
SQLite version 3.8.11.1 2015-07-29 20:00:57
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
spatialite> .tables
ElementaryGeometries vector_layers
SpatialIndex vector_layers_auth
geom_cols_ref_sys vector_layers_field_infos
geometry_columns vector_layers_statistics
geometry_columns_auth views_geometry_columns
geometry_columns_field_infos views_geometry_columns_auth
geometry_columns_statistics views_geometry_columns_field_infos
geometry_columns_time views_geometry_columns_statistics
spatial_ref_sys virts_geometry_columns
spatial_ref_sys_all virts_geometry_columns_auth
spatial_ref_sys_aux virts_geometry_columns_field_infos
spatialite_history virts_geometry_columns_statistics
sql_statements_log
spatialite> .quit
E:\test>dir
El volumen de la unidad E no tiene etiqueta.
El número de serie del volumen es: EB6C-61CB
Directorio de E:\test
27/09/2016 08:32 <DIR> .
27/09/2016 08:32 <DIR> ..
29/10/2009 01:55 2.128.896 regions.sqlite
29/10/2009 01:55 2.128.896 regioñs.sqlite
07/09/2015 17:18 32.584.206 spatialite_gui.exe
12/09/2016 21:12 682.496 sqlite3.exe
30/09/2016 12:10 13.012.494 spatialite.exe
30/09/2016 12:16 5.808.128 regio?s.sqlite
6 archivos 56.345.116 bytes
2 dirs 2.536.984.576 bytes libres
E:\test>spatialite
SpatiaLite version ..: 4.3.0a Supported Extensions:
- 'VirtualShape' [direct Shapefile access]
- 'VirtualDbf' [direct DBF access]
- 'VirtualXL' [direct XLS access]
- 'VirtualText' [direct CSV/TXT access]
- 'VirtualNetwork' [Dijkstra shortest path]
- 'RTree' [Spatial Index - R*Tree]
- 'MbrCache' [Spatial Index - MBR cache]
- 'VirtualSpatialIndex' [R*Tree metahandler]
- 'VirtualElementary' [ElemGeoms metahandler]
- 'VirtualXPath' [XML Path Language - XPath]
- 'VirtualFDO' [FDO-OGR interoperability]
- 'VirtualGPKG' [OGC GeoPackage interoperability]
- 'VirtualBBox' [BoundingBox tables]
- 'SpatiaLite' [Spatial SQL - OGC]
PROJ.4 version ......: Rel. 4.9.1, 04 March 2015
GEOS version ........: 3.5.0-CAPI-1.9.0 r4084
LWGEOM version ......: 2.1.7
TARGET CPU ..........: mingw32
the SPATIAL_REF_SYS table already contains some row(s)
SQLite version ......: 3.8.11.1
Enter ".help" for instructions
SQLite version 3.8.11.1 2015-07-29 20:00:57
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
spatialite> .restore regioñs.sqlite
spatialite> .tables
spatialite> .quit
E:\test>dir
El volumen de la unidad E no tiene etiqueta.
El número de serie del volumen es: EB6C-61CB
Directorio de E:\test
27/09/2016 08:32 <DIR> .
27/09/2016 08:32 <DIR> ..
29/10/2009 01:55 2.128.896 regions.sqlite
29/10/2009 01:55 2.128.896 regioñs.sqlite
07/09/2015 17:18 32.584.206 spatialite_gui.exe
12/09/2016 21:12 682.496 sqlite3.exe
30/09/2016 12:10 13.012.494 spatialite.exe
30/09/2016 12:24 0 regio?s.sqlite
6 archivos 50.536.988 bytes
2 dirs 2.542.792.704 bytes libres
E:\test>spatialite_gui regioñs.sqlite
REM Just works, but it does not if I use the open file dialog.
8-bit byte that contains a 7-bit ASCII code
TIFF image MessageThe TIFF format only supports comments in7bit ASCII encoding. No comment is saved.
gdal_edit.py -mo 'TIFFTAG_COPYRIGHT=Senatsverwaltung für Stadtentwicklung und Umwelt Berlin' 2010.Berlin.5000.25833.FAX4_MINISWHITE.600.tif
Metadata: AREA_OR_POINT=Area TIFFTAG_ARTIST=mj10777.de.eu TIFFTAG_COPYRIGHT=2010 Senatsverwaltung für Stadtentwicklung und Umwelt TIFFTAG_DATETIME=2010 TIFFTAG_DOCUMENTNAME=2010 Berlin K5 1:5000 TIFFTAG_IMAGEDESCRIPTION=2010 Landeskartenwerk Karte von Berlin 1:5000 (K5)
TIFFTAG_COPYRIGHT=2010 Senatsverwaltung für Stadtentwicklung und Umwelt
bye Sandro