If a save a text file with the following character б
U+0431
, but save it as an ANSI code page file.
Ruby returns ord = 63
. Saving the file with UTF-8 as the codepage returns ord = 208, 177
Should I be specifically telling Ruby to handle the input encoded with a certain code page? If so, how do you do this?