I have a mimemessage in a string.
This string is utf8, i would like to know the size of this string.
String.size gives me the length in characters, but i need the size in kb
or bytes
···
--
Posted via http://www.ruby-forum.com/.
I have a mimemessage in a string.
This string is utf8, i would like to know the size of this string.
String.size gives me the length in characters, but i need the size in kb
or bytes
--
Posted via http://www.ruby-forum.com/.
daniel wijnands wrote:
I have a mimemessage in a string.
This string is utf8, i would like to know the size of this string.
String.size gives me the length in characters, but i need the size in kb
or bytes
String#size returns the size in bytes. String#jsize returns the number
of characters (with require 'jcode').
--
Posted via http://www.ruby-forum.com/\.
Thanks, then my method is valid, i want to know the bytes, so that's
fine
Andreas S. wrote:
daniel wijnands wrote:
I have a mimemessage in a string.
This string is utf8, i would like to know the size of this string.
String.size gives me the length in characters, but i need the size in kb
or bytesString#size returns the size in bytes. String#jsize returns the number
of characters (with require 'jcode').
--
Posted via http://www.ruby-forum.com/\.