Writing Files

D

Dave White

Hi, I'm trying to do something that isn't obvious. I have a file I need to
create which contains some characters that are greater than ASCII 127 (? for
example). Now, if I encode the file as UTF-7 then it doesn't work. If I
use UTF-8 then it places a high order bit in the character. The problem is
that the file has to have data in specific places, as it is parsed by a
database reader, so if I need high ASCII bytes in there at exactly the point
that I require them.

Any ideas?
Dave
 
J

Jeremy Cowles

I think you are looking for ANSI:

Text.Encoding.Default.GetBytes( )

HTH
~
Jeremy
 

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