+

Search Tips   |   Advanced Search

Work with locales and character encodings

Internationalization support for this product relies on that provided by the Java Platform, Standard Edition (JSE). Support varies by platform.


Tasks

If the application produces an UnsupportedEncodingException exception, check the operating system documentation to determine if the target operating system supports the required encoding and adjust the runtime environment as needed. Use the converter.properties file as appropriate to map an unsupported character set to a supported character set. See the following converter.properties file example:

Shift_JIS=CP943C
EUC-JP=Cp33722C
EUC-JP=Cp33722C
EUC-KR=Cp970
EUC-TW=Cp964
Big5=Co950
GB2312=Cp1386
ISO-2022-KR=ISO2022KR
The converter.properties file implements a method for specifying a content type header field that browsers would understand (such as, SHIFT_JIS) and a writer that can output characters correctly (such as, Cp943c).

(Windows)


Example

For example, on the Windows platform, the command prompt runs in a Windows code page. Not all Windows code pages are supported by the Java platform, so it is possible to get a Java exception when running a command-line program, such as wsadmin, in an unsupported code page. To avoid exceptions, use the chcp command to explicitly set the code page to an encoding supported by the Java platform.


Related:

  • Globalization
  • Language versions offered by this product
  • Globalization: Resources for learning
  • Core Java Internationalization (Oracle Corporation)

    (Windows)

    Code Pages Supported by Windows (Microsoft Corporation)