def __init__(self, driver, encoding=None, disabled=False,<EOL>defaultsymbol='<STR_LIT:?>', encoder=None):
if disabled and not encoding:<EOL><INDENT>raise Error('<STR_LIT>')<EOL><DEDENT>self.driver = driver<EOL>self.encoder = encoder or Encoder(driver.profile.get_code_pages())<EOL>self.encoding = self.encoder.get_encoding_name(encoding) if encoding else None<EOL>self.defaultsymbol = defaultsymbol<EOL>self.disabled = disabled<EOL>
:param driver:
:param encoding: If you know the current encoding of the printer
when initializing this class, set it here. If the current
encoding is unknown, the first character emitted will be a
codepage switch.
:param disabled:
:param defaultsymbol:
:param encoder: