ruby convert char to ascii code example Example: convert to ascii ruby "string".each_byte do |c| puts c end