Convert a String or Character to ASCII code and vice versa in Ruby
1 minsIn this article, you'll learn How to convert a character to ASCII code as well as convert an ASCII code to character in Ruby. Ruby provides two functions called ord() and chr() for converting character to ASCII code and vice versa.