What I'm trying to accomplish is converting a character such as ☺ to an IBM437 character code. That is, ☺, would turn into a one, ☻ would turn into a two and so fourth (all according to the location of the specified character in the font: image from wikipedia.)
I've tried several different methods and done some heavy researching on the internet. After all, as pretty usual, it ends in asking a question on good old stackoverflow.
Thanks y'all,
Foru