Binary Reader and DBF files

  • Thread starter Thread starter JimmyKoolPantz
  • Start date Start date
J

JimmyKoolPantz

I came across a problem today and I'm not sure what my possible
solutions are. The situation is I am am using a binary reader to read
data from a filestream. The data source is a dbf file.

While reading characters from the stream, I came across a problem. The
problem is "ProtéGé" . This is a persons name in one of the fields,
and when reading characters, it basically skips the e's and grabs 2
bytes from the next field. Which throws everything else off by two.

Ayone have any solutions?

Just incase you need to know, am using
binaryreader.ReadChars(Field_Lenght). Wen it reads "ProtéGé" its not
reading the e's. So instead of reading 7characters its only reading 5
and grabing 2 characters from the next field.
 
Can you specify the encoding of the stream?

Rick


I came across a problem today and I'm not sure what my possible
solutions are. The situation is I am am using a binary reader to read
data from a filestream. The data source is a dbf file.

While reading characters from the stream, I came across a problem. The
problem is "ProtéGé" . This is a persons name in one of the fields,
and when reading characters, it basically skips the e's and grabs 2
bytes from the next field. Which throws everything else off by two.

Ayone have any solutions?

Just incase you need to know, am using
binaryreader.ReadChars(Field_Lenght). Wen it reads "ProtéGé" its not
reading the e's. So instead of reading 7characters its only reading 5
and grabing 2 characters from the next field.
 
Back
Top