Ed Leafe wrote: > On Jul 31, 2007, at 12:01 PM, Ricardo Aráoz wrote: > >> Actually there will be no non-ascii characters. >> A string is a list of bytes, ascii is just a way of interpreting them, >> so if you decide the string is in ascii format, every character >> will be >> an ascii character. > > What if the byte represents the number 522? That is undefined in ASCII. > > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com > >
Sorry byte = 8 bits => 1+2+4+8+16+32+64+128 == 11111111binary == 255 (top ascii char). No way a byte can be 522. _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.