>>>>> "S" == Slava Kravchenko <arachis / gmx.net> writes:

S> puts "{K}".size            # --->  2

S> .... where {K} is a single kanji/kana symbol.
S> Running ruby with "-Ke" (I'm using EUC-JP encoding) and without it
S> produces the same result. I know that *technically* it takes 2 bytes,
S> but logically... ;)

 Well, you're probably working with 1.6.* or 1.7.* but with ruby_m17n

 String#length will return 1 in this case
 String#size   will give   2

 if I'm right


Guy Decoux