Set codepage and debug print