Character set

Character sets are identifiers that describe a series of universal characters. The following adapters can use a <character-set> element in the adapter configuration or in a dynamic target definition in the adapter request:

  • FTP
  • JMS actor and monitor
  • File
  • Command Line
  • SSH
  • Telnet
  • FTP
  • SFTP
  • PowerShell
  • Windows Command
  • HTTP
  • JMS
  • Script
  • SNMP
  • SQL actor and monitor
  • Web Services
  • POP
  • IMAP
  • SMTP

The following figure shows an XML sample using the character-set element in an adapter configuration.

XML sample of the the character-set element in an adapter configuration

<config>
  <character-set>Shift_JIS</character-set>
</config>

The following table lists the default values for the <character-set> element for base adapters:

Default values for the <character-set> element for base adapters

Base adapter

Default value

All terminal adapters

ISO-8859-2

HTTP

UTF-8

JMS monitor

ISO-8859-2

Script

Default character set of the system on which the adapter is enabled

SNMP

ISO-8859-1

SQL

Dependent on the underlying JDBC driver used

Web Services

UTF-8

POP

UTF-8

IMAP

UTF-8

SMTP

UTF-8

The character set that you specify while configuring an adapter or in an adapter request depends on the target. The target can be the computer on which the peer is running, or the remote computer in an adapter request, or a combination of the computer hosting the server and the server itself.

For detailed information about character encoding, see http://en.wikipedia.org/wiki/Character_encoding.

System settings for changing the character set

You can use the following methods to set or find the language, locale, and the character set of a computer based on which operating system is installed on that computer:

  • On a windows-based computer: Execute the chcpcommand. For Windows 2003 and Windows XP, you can also use the user interface to find or set the character set:
    1. Click Start > Control Panel.
    2. Double-click Regional and Language Options.
    3. Click the Regional Options tab, select a regional standard (for example, Chinese PRC), and then click Apply.
    4. Click the Advanced tab and select the same regional standard (for example, Chinese PRC) that you selected in step 3.
    5. Select the check box under Default user account settings.
    6. Click Apply, and then click OK.
    7. Restart your computer.
  • On a Linux-based computer: Execute the set | grep LANG command.

For detailed information about setting the character set on a particular operating system, see the documentation for that operating system.

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Comments