33
CITIZEN UWP POS Print SDK - Programming Manual
2.3.5. SetEncoding method
Syntax
int SetEncoding (string charset)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT]
Meaning
Setting range
charset
[IN]
Character set name
Encoding that is supported depends on the
implementation of Windows.
Description
This method is used to set the encoding of the send data to the printer.
When you create an instance, it is initialized to the default character set of the OS.
Please set the encoding by the setting of the memory switch of the printer. (Please refer to "
This SDK supports printing UTF-8 encoded characters. Please refer to "
" for the detail.
When used in Japanese, it is necessary to specify the "Shift-JIS".
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
printer.SetEncoding( "Shift_JIS" );
printer.SetEncoding( "GB18030" );
printer.SetEncoding( "EUC-KR" );
printer.SetEncoding( "BIG5" );
printer.SetEncoding( "UTF-8" );