# -*- coding: shift_jis -*-
id="ももち"
p id.encoding
p id.codepoints{|cp| print cp.to_s(16) + " " }
ec = Encoding::Converter.new("shift_jis", "UTF-8")
dst = ec.convert(id)
p dst
p dst.encoding
p dst.codepoints{|cp| print cp.to_s(16) + " " }
IyAtKi0gY29kaW5nOiBzaGlmdF9qaXMgLSotCgppZD0i44KC44KC44GhIgpwIGlkLmVuY29kaW5nCnAgaWQuY29kZXBvaW50c3t8Y3B8IHByaW50IGNwLnRvX3MoMTYpICsgIiAiIH0KCmVjID0gRW5jb2Rpbmc6OkNvbnZlcnRlci5uZXcoInNoaWZ0X2ppcyIsICJVVEYtOCIpCmRzdCA9IGVjLmNvbnZlcnQoaWQpCgoKcCBkc3QKcCBkc3QuZW5jb2RpbmcKcCBkc3QuY29kZXBvaW50c3t8Y3B8IHByaW50IGNwLnRvX3MoMTYpICsgIiAiIH0K