Bug report #7794

Fail create a spatial index with shape file that contain Japanese in the file name

Added by yoichi Kayama almost 11 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Vectors
Affected QGIS version:master Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16686

Description

When create a spatial index with shape file that contain Japanese in the file name,always fail.
This bug occurs in "general" "Create spatial index" of the Layer Properties.
I was confirmed by Windows7 .
I was able to create a spatial index in the file that was changed to not a Japanese file name and path name.
I guess that it might be to also occur in other languages ​​other than Japanese.

spatialindex_error.png (84.5 KB) yoichi Kayama, 2013-05-09 06:33 PM


Related issues

Duplicated by QGIS Application - Bug report #8186: Fail to make spatial index for shapefile, with Japanese ... Closed 2013-06-27

History

#1 Updated by Minoru Akagi almost 11 years ago

I can confirm this with SJIS shapefile, but the creation works with UTF-8 shapefile.

#2 Updated by Minoru Akagi almost 11 years ago

pull request to fix this issue: https://github.com/qgis/Quantum-GIS/pull/584

#3 Updated by Minoru Akagi almost 11 years ago

Steps to reproduce:
1. make a shapefile that includes non-ascii characters in the filename
2. turn on the "Ignore shapefile encoding declaration" option
3. open the shapefile and select an encoding other than UTF-8
4. do "Create spatial index"

#4 Updated by yoichi Kayama almost 11 years ago

I had success make create spatial index with shape file that contain Japanese in the file name.
It require processing of Encoding fixer plugin for files I used.
I will try to test for some files.

#5 Updated by yoichi Kayama almost 11 years ago

If Shapefile has not encoding information, it is necessaryto to use Fix Shapefile Encoding plugin setting LDID byte to 0x13 or making CPG file.

#6 Updated by yoichi Kayama almost 11 years ago

  • Status changed from Open to Closed

#7 Updated by Paolo Cavallini almost 11 years ago

Better document this on the manual? Pull req welcome.
Arigatou.

#8 Updated by Minoru Akagi over 10 years ago

The pull request was merged. Fixed in changeset a2776da.

Also available in: Atom PDF