bytesize

str.bytesize â integer
Instance Public methods

Returns the length of str in bytes.

1
2
"\x80\u3042".bytesize  #=> 4
"hello".bytesize       #=> 5
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.