Re: Am I correct in thinking that the only way to get ord() to return a value over 256 is to send the character as a Unicode string instead of a byte string?

2010-10-29 Thread Aristotle Pagaltzis
* Dan Muey [2010-10-28 21:55]: > For example, note the differences in output between a unicode > string and a byte string regarding character 257, as a unicode > string it is 257, as a byte string it is 196. That is not what’s going on. $ perl -E'say ord "1234"' 49 When you pass a multi

Re: Am I correct in thinking that the only way to get ord() to return a value over 256 is to send the character as a Unicode string instead of a byte string?

2010-10-29 Thread Dan Muey
On Oct 29, 2010, at 2:30 AM, Aristotle Pagaltzis wrote: > * Dan Muey [2010-10-28 21:55]: >> For example, note the differences in output between a unicode >> string and a byte string regarding character 257, as a unicode >> string it is 257, as a byte string it is 196. > > That is not what’s goin