Is there an encoding that specifies that the data is binary data, rather than data in any specific encoding?
On 9/24/06, Mark Nutter <[EMAIL PROTECTED]> wrote:
--- Joe Cabrera <[EMAIL PROTECTED]> wrote: > This is rather odd. I'm reading a binary file into a string, > but the > string isn't matching its source code exactly: > ... > > I thought this was pretty straight forward, but when I check > the > contents of "winMain.editBoxGridFill.text" with the msgBox > call, I > notice that two characters (the 122th and 191st, respectively) > are > spaces instead of letters. > > Any ideas why? Encoding? Try this: before you write your string to the binary file, use ConvertEncoding on it to set it to some known encoding like WindowsLatin1 or something, then after you read it back in, use DefineEncoding to set it to the same encoding. The idea is you know what encoding it is when you save it to binary, and you know it's the same encoding after you've read it back out again. Mark Nutter Quick and easy regex creation and debugging! http://www.bucktailsoftware.com/products/regexplorer/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
-- Keith Bennett, tA-Kane Software developer and Macintosh enthusiast Free iPods!!! http://www.freeiPods.com/?r=10867472 _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>