Sometimes the fieldnames in the QGIS attribute table get corrupted, mostly it is å, ä, ö that is changed when the layer is opened in another software.

Is there any way to change them or is it only solution to create a new field and copy data to new field?

Yes shapefile, when I am opening the shapefile in ArcView3.2 I cant choose encoding and its get corrupted. There are somethings that is so much easier in ArcView so I am still using it.

enter image description here

enter image description here

  • What is your vector data container? Shapefile? gis.stackexchange.com/questions/75563/… Sep 22, 2022 at 9:39
  • QGIS doesn't have attribute tables, but can display the attributes tables of a dataset. What format is your data? Shapefile, geopackage, CSV, Tab, something else? Not all formats (and not all software) support non-ASCII field names.
    – user2856
    Sep 22, 2022 at 9:39
  • you probably have either saved the layer with the wrong encoding or read the shapefile with an encoding different than the one used to save it
    – Kalak
    Sep 22, 2022 at 9:48
  • I suspect is an issue with encoding. As @LouisCottereau said you should check with what encoding the file has been saved.
    – Nikos
    Sep 22, 2022 at 10:17
  • 1
    Rename fields tool does what you want, see gis.stackexchange.com/a/385939/15183
    – til_b
    Sep 23, 2022 at 10:33

1 Answer 1


It's not clear in which case / with which software you encounter the problem.

In QGIS if you know the right encoding you may set it in the layer property : enter image description here

If you dont want to set it each time you may create another sidecar file with the .cpg extension (it's just a text file with for only content the encoding, for the shapefile in my exemple you will create the "DEMO.cpg" sidecar file with UTF-8 as only content)

I think QGIS create shapefile with UTF-8 encoding as default (you may change encoding be saving the shapefile using the "Save Vector Layer as..." and setting the encoding in the window)

  • thanks but the cpg only saves the table content not the fieldname? Se added picture above Sep 25, 2022 at 9:40

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.