How to convert UTF-8 code to char in Ruby

1 Answer

0 votes
x = 3777 
puts x.chr(Encoding::UTF_8)

x = 14909
puts x.chr(Encoding::UTF_8)





   
#
# run:
# 
# ແ
# 㨽
#

 



answered Oct 18, 2021 by avibootz
...