# -*- coding: utf-8 -*- s = "møøse" puts "Byte length: %d" % s.bytesize puts "Character length: %d" % s.length