Get unicode character of string in Ruby 1.8/1.9


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. "ABCDEFG".each_char {|c| puts c.unpack('U*').first}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.