I have the problem with encoding because I need Polish letters and encoding="utf-8" didn't work.

import geopandas

df = geopandas.read_file(r'/home/gis/adresypolska/PRG_PunktyAdresowe_POLSKA.shp', layer ='PRG_PunktyAdresowe_POLSKA', encoding = "utf-8")

I got this, look at second and third column:

How can I solve that?

enter image description here

  • 1
    Please, don't use an image, use text. The problem is the original encoding of the dbf file which is not "utf-8"
    – gene
    Dec 1 '20 at 12:12
  • How can I solve that? Dec 1 '20 at 12:16
  • Either converting the original data into UTF-8 or trying some other encodings in GeoPandas, e.g. ISO-8859-2 or Windows-1252.
    – Taras
    Dec 1 '20 at 12:18


encoding = "cp1250" 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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