On Apr 23, 2007, at 19:26 UTC, Arnaud Nicolet wrote: > I remember there is an encoding named "ASCII". I'm curious to > discover what is, in that encoding, the character numbered 128
There is none. ASCII values range only from 0 to 127. It is like asking how many days are in the 13th month of the year. > (because I assume the ASCII encoding provided by RB has that extra > 8th bit). There is no "ASCII encoding provided by RB"; there is only the ASCII encoding, or various things that are not the ASCII encoding (but may be a superset of ASCII). The ASCII encoding defines values from 0 to 127, period, end of story. No other characters are defined. Now, in RB, if you ask for an invalid character -- e.g. Encodings.ASCII.Chr(128) -- it'll probably give you something, but exactly what it gives you is undefined. The result will almost certainly vary from platform to platform, or depending on your system settings, or on what version of RB you're using. It might even generate an OutOfBoundsException (which would be a pretty sensible thing for it to do). Garbage in, garbage out. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
