# encoding: UTF-8 puts 'Д' puts 'Д'.unpack('H2' * 2).inspect