Very easy ruby lang question


#1

irb(main):035:0> 0xb0
=> 176
irb(main):036:0> “\xb0”
=> “\260”

why defferent?


#2

solved

forget it…


#3

“hui” == hui removed_email_address@domain.invalid writes:

irb(main):035:0> 0xb0
=> 176
irb(main):036:0> “\xb0”
=> “\260”

why defferent?

176 base 10 == 260 base 8.


Calle D. removed_email_address@domain.invalid
http://www.livejournal.com/users/cdybedahl/
“Just about anything can be done if you are demented enough.”
– Christopher C. Petro, scary.devil.monastery