albfernandez / javadbf

Java library for reading and writing Xbase (dBase/DBF) files.
GNU Lesser General Public License v3.0
220 stars 98 forks source link

languageDriver is 0 #107

Closed zhangdan-dev closed 8 months ago

zhangdan-dev commented 1 year ago

dbf文件解析字符编码为null,发现languageDriver值为0 。一般是什么原因呢?

image
albfernandez commented 1 year ago

I'm not sure you are using this javadbf, it seems you are using another clone.

But I try to help you. I assume you've created the dbf file with the java library. There is a list of "officially supported" charsets on dbf files. When you create a dbf file with javadbf, the file is created , and if the charset supplied is "not supported", isntead of fail, it creates the file but register with "languageDriver=0"

When you read this files with javadbf, you must indicate to DBFReader the charset to use.