How can I extract the ascii code from a string and then convert it to char?
string = "a – b"
to
a – b
How can I extract the ascii code from a string and then convert it to char?
string = "a – b"
to
a – b
Use CGI library from ruby
CGI.unescapeHTML("a – b")
#=> "a – b"