SetTextOutputEncoding

Sets the encoding for the Printer Driver’s Text Output.

Unicode text output files will start with a byte-order mark.

 

SetTextOutputEncoding(pDevMode As Long, iValue As Long) As Boolean

 

Input value   - handle to the BlackIceDEVMODE structure

Input value   -one of the following values:

0:         Default ANSI codepage (default)

1:         Unicode, UTF-8

2:         Unicode, UTF-16 Little Endian

3:         Unicode, UTF-16 Big Endian

Return value            - TRUE on success, FALSE otherwise.

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.