Convert character, ascii, text code to internal code and vice versa