Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect the encoding from A DBF

Tags:

.net

encoding

dbf

I want to detect the encoding of DBF automatically, but the structure of DBF file doesn't contains any information in the header of DBF file. I used to use a DBF Viewer and it opens with a proper encoding information. So I'm not sure how they implement it.

I researched the structure of DBF file and there is a language driver id, but we don't have an ID to CodePage table, any one have clue?

like image 573
Howard Avatar asked Jan 19 '26 20:01

Howard


1 Answers

I did a lot of research and found this article in Esri's official website: http://webhelp.esri.com/arcpad/8.0/referenceguide/index.htm#locales/task_code.htm

It really helps for me to convert from language id to code page; I this issue is fixed. Hope it helps others.

like image 177
Howard Avatar answered Jan 21 '26 12:01

Howard