92
CITIZEN UWP POS Print SDK - Programming Manual
3.3.15. SetEncoding method
Syntax
int SetEncoding (String charset)
Parameter
The meanings and settable values of the parameters are as follows.
Element
Meaning
Settable range
data
Send data
Description
This method is used to set the encoding of the send data to the display.
When you create an instance, it is initialized to the default character set of the OS.
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
// Japanese
display.SetEncoding( "Shift_JIS" );
// Chinese
display.SetEncoding( "GB18030" );
// Korean
display.SetEncoding( "EUC-KR" );
// Taiwanese
display.SetEncoding( "Big5" );