From: daniel wijnands Date: 2006-01-05T21:48:02+09:00 Subject: Re: String utf8 size in kilobytes 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 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/.