Very easy ruby lang question

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

why defferent?

solved

forget it…

“hui” == hui [email protected] writes:

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

why defferent?

176 base 10 == 260 base 8.


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