Select your printer model

Parameters are refined by the selected printer.

addTextLang


Adds language setting to the command buffer.

A text string specified by the addText API is encoded according to the language specified by this API.

Syntax

 
public void addTextLang(int lang) throws Epos2Exception

Parameter

lang

Specifies the target language.

Value

Description

Printer.LANG_EN (default)

English (ANK specification)

Printer.LANG_JA

Japanese

Printer.LANG_ZH_CN

Simplified Chinese

Printer.LANG_ZH_TW

Traditional Chinese

Printer.LANG_KO

Korean

Printer.LANG_TH

Thai (South Asian specification)

Printer.LANG_VI

Vietnamese (South Asian specification)

Printer.LANG_MULTI

Multiple languages (UTF-8)

Printer.PARAM_DEFAULT

Specifies the default value (English).

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • This API is called before the addText API.
  • Use this API at the top of each print job.
  • Available languages differ depending on character specifications of the printer. For details, see Technical Reference Guide of the printer.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for Android

Jump to the top