Skip to content

System.FormatExecption when reading the file #8

Open
@Audionysos

Description

@Audionysos

Hi, I have a problem reading the file. I'm loading map from shapefile using DotSpatial, but the .dbf file contains some fields encoded in code page that cannot be read by the library, so I wanted to use your library to read those fields. However I get an exception when trying to read the file:

dbf.Read(); gives me:

System.FormatException: 'Input string was not in a correct format.'

The path is good, I'm using the same path with File.ReadAllText()
I can open the file in OpenOffice correctly using UTF-8.
I've tried to set encoding in Dbf constructor but it's the same.

You can download the files HERE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions