Binary Reader and DBF files

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.
 
R

Rick

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top