# derby.ui.codeset property

The `derby.ui.codeset` property specifies an alternative supported character encoding value when you use one of the Derby tools with a language not supported by your default system.

This property is commonly used in conjunction with the `derby.ui.locale` property.

## Syntax

    derby.ui.codeset=derbyval

where derbyval is a supported character encoding value, such as UTF8 (see the table later in this topic).

## Example

The following command runs `ij` using the Japanese locale (`derby.ui.locale=ja_JP`) and Japanese Latin Kanji mixed encoding (`derby.ui.codeset=Cp939`):

    java -Dderby.ui.locale=ja_JP -Dderby.ui.codeset=Cp939  \
    -Dij.protocol=jdbc:derby: org.apache.derby.tools.ij

The following table contains a sampling of character encodings. Supported encodings vary from product to product. For example, to see the full list of character encodings that are supported by the Java Platform, Standard Edition 7 Software Development Kit, go to http://docs.oracle.com/javase/7/docs/technotes/guides/intl/encoding.doc.html.

Table 1. Sample character encodings
Character Encoding | Explanation
--- | ---
8859_1 | ISO Latin-1
8859_2 | ISO Latin-2
8859_7 | ISO Latin/Greek
Cp1257 | Windows Baltic
Cp1258 | Windows Vietnamese
Cp437 | PC Original
EUCJIS | Japanese EUC
GB2312 | GB2312-80 Simplified Chinese
JIS | JIS
KSC5601 | KSC5601 Korean
MacCroatian | Macintosh Croatian
MacCyrillic | Macintosh Cyrillic
SJIS | PC and Windows Japanese
UTF8 | Standard UTF-8

Parent topic: ij properties reference
Related reference
ij.connection.connectionName property
ij.database property
ij.dataSource property
ij.exceptionTrace property
ij.maximumDisplayWidth property
ij.outfile property
ij.password property
ij.protocol property
ij.protocol.protocolName property
ij.showErrorCode property
ij.showNoConnectionsAtStart property
ij.showNoCountForSelect property
ij.URLCheck property
ij.user property
derby.ui.locale property