Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-ASCII character corruption in shapefile #15614

Closed
qgib opened this issue Sep 10, 2012 · 5 comments
Closed

non-ASCII character corruption in shapefile #15614

qgib opened this issue Sep 10, 2012 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Sep 10, 2012

Author Name: Leyan Ouyang (Leyan Ouyang)
Original Redmine Issue: 6327
Affected QGIS version: master


The non-ASCII characters seem to be corrupted on a new shapefile. Steps to reproduce:

  • Create a shapefile, choosing UTF8 and adding a text attribute
  • Create a feature and fill the text attribute with non-ASCII text (for example 汉字)
  • Save the shapefile.

The text of the attribute is replaced by "??"

This does not happen when loading an existing UTF8 shapefile, it can even be modified and saved. "Save as", however, is also affected.

I use QGis master and latest GDAL build from SVN. I am using ArchLinux with a en_US.UTF-8 locale.

I am aware of the previous issues between QGIS and GDAL, but Alexander Bruy told me they were mostly solved now and this problem looks different, hence this new bug report.

@qgib
Copy link
Contributor Author

qgib commented Sep 11, 2012

Author Name: Leyan Ouyang (Leyan Ouyang)


Everything seems to work much better if I choose the option "Ignore shapefile encoding". What does this new option do exactly ?

@qgib
Copy link
Contributor Author

qgib commented Oct 5, 2012

Author Name: Alexander Bruy (@alexbruy)


Should be fixed in master, see 75dc85b.


  • operating_system was changed from ArchLinux to
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 5, 2012

Author Name: Leyan Ouyang (Leyan Ouyang)


This is the option "Ignore shapefile encoding" I mentioned in the first comment, and it does seem to solve the issue. However, the bug is not fixed in my opinion as the default setting will lead to loss of data. This option should be checked by default while the issues with GDAL are not sorted out.

@qgib
Copy link
Contributor Author

qgib commented Dec 30, 2012

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from High to Normal

@qgib
Copy link
Contributor Author

qgib commented Apr 25, 2013

Author Name: Borys Jurgiel (@borysiasty)


Fixed in 4fb9879


  • resolution was changed from to fixed
  • status_id was changed from Feedback to Closed

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib closed this as completed May 24, 2019
JamesShaeffer pushed a commit to JamesShaeffer/QGIS that referenced this issue Nov 20, 2019
…precision and width so as to make QgsVectorLayerEditBuffer::commitChanges() API

Fixes qgis#15614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant