From 3a9e476904601996d80f942605ea8afe0adf75e4 Mon Sep 17 00:00:00 2001 From: Linds Date: Wed, 16 Mar 2022 21:45:59 +1000 Subject: [PATCH] Fixing to use decoder for string conversion for field names. --- godbf/dbfio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godbf/dbfio.go b/godbf/dbfio.go index 7eb343f..26c8c59 100644 --- a/godbf/dbfio.go +++ b/godbf/dbfio.go @@ -114,7 +114,7 @@ func deriveFieldName(s []byte, dt *DbfTable, offset int) (string, error) { return "", errors.New(msg) } - fieldName := dt.encoder.ConvertString(string(nameBytes[:endOfFieldIndex])) + fieldName := dt.decoder.ConvertString(string(nameBytes[:endOfFieldIndex])) return fieldName, nil }