ruby - print unicode charcater to Rubymine console -
so want print hebrew character, unicode value of \u{fb20}
rubymine console, common output hello world
typically go if run puts 'hello world'
.
the code trying run puts "\u{fb20}"
, nothing crazy.
rubymine set default system encoding both projectg , ide levels, , have tried setting encoding utf-8 , utf-16, neither of these 3 setting print character correctly console.
i ï¬
printed console @ moment, not right character. right character ﬠ
.
try encoding character in ruby, , printing it.
symbol = "\ufb20" puts symbol.encode('utf-16')
and change rubymine encoded in utf-16
Comments
Post a Comment