Forum: Ruby on Rails very easy ruby lang question...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
28e2f22c094b0712b34952178f90620e?d=identicon&s=25 hui (Guest)
on 2006-03-27 09:23
(Received via mailing list)
irb(main):035:0> 0xb0
=> 176
irb(main):036:0> "\xb0"
=> "\260"


why defferent?
28e2f22c094b0712b34952178f90620e?d=identicon&s=25 hui (Guest)
on 2006-03-27 09:27
(Received via mailing list)
solved

forget it........
9d7d8ef2179661d6b30e180fa588cd45?d=identicon&s=25 Calle Dybedahl (Guest)
on 2006-03-27 09:36
(Received via mailing list)
>>>>> "hui" == hui  <zhengzhengzheng@gmail.com> writes:

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


> why defferent?

176 base 10 == 260 base 8.

--
		     Calle Dybedahl <calle@cyberpomo.com>
		 http://www.livejournal.com/users/cdybedahl/
	"Just about anything can be done if you are demented enough."
		-- Christopher C. Petro, scary.devil.monastery
This topic is locked and can not be replied to.