You must firstly convert characters in text that you want to print to OEM-defined character set. You can do this transformation by using CharToOEM Windows API.
Code:
BOOL CharToOem(
LPCTSTR lpszSrc, // pointer to string to translate
LPSTR lpszDst // pointer to translated string
);