|
1.50.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--interbase.interclient.CharacterEncodings
An enumeration of IANA character encodings supported by InterClient. A complete list of IANA encodings may be found at ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets.
The InterBase name for the IANA character encoding may be obtained by calling getInterBaseCharacterSetName().
Any of the following character encodings may be specified
on connection using the charSet
connection property.
It is strongly recommended to use one of the static final variables below
rather than using hardwired encoding names in your application.
The actual encoding names represented by these variables could
change from one release to the next.
ConnectionProperties.setCharacterEncoding(java.lang.String)
Field Summary | |
static String |
_8859_1
ISO Latin-1. |
static String |
Big5
Big 5 Chinese for Taiwan Multi-byte set. |
static String |
Cp1250
Windows Eastern Europe/Latin-2. |
static String |
Cp1251
Windows Cyrillic. |
static String |
Cp1252
Windows Western Europe/Latin-1. |
static String |
Cp1253
Windows Greek. |
static String |
Cp1254
Windows Turkish. |
static String |
Cp437
PC Original. |
static String |
Cp850
PC Latin-1. |
static String |
Cp852
PC Latin-2. |
static String |
Cp857
PC Turkish. |
static String |
Cp860
PC Portuguese. |
static String |
Cp861
PC Icelandic. |
static String |
Cp863
PC Canadian French. |
static String |
Cp865
PC Nordic. |
static String |
EUCJIS
Japanese Extended Unix Code (EUC). |
static String |
GB2312
Simplified Chinese for People's Republic of China. |
static String |
KSC5601
Korean. |
static String |
NONE
The default encoding is no encoding at all. |
static String |
SJIS
PC and Windows Japanese. |
static String |
UTF8
Standard UTF-8. |
Method Summary | |
static String |
getInterBaseCharacterSetName(String encoding)
Return the InterBase character set name for a supported Java encoding name. |
static String[] |
getSupportedEncodings()
Return an array of all Java encodings supported by the driver. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final String NONE
If an encoding is not specified using the
charSet
connection property, an attachment
will use the InterBase default NONE
character set.
The NONE
character set attachment specifies
that data is processed as is with no conversions.
The default encoding for your locale is not used.
Because conversions are not performed and no particular
encoding is enforced, all SQL and SQL data is
interpreted byte-wise as the low order byte of a Java Unicode
2-byte character.
Therefore, all SQL and character data should be restricted to
ASCII when connecting to an InterBase
server using the default NONE
character set.
public static final String _8859_1
An 8-bit encoding that supports many latin languages, including Afrikaans, Albanian, Basque, Catalan, Danish, Dutch, English, Faroese, Finnish, French, Galician, German, Icelandic, Irish, Italian, Norwegian, Portuguese, Scottish, Spanish, and Swedish.
public static final String Big5
public static final String Cp1250
public static final String Cp1251
public static final String Cp1252
public static final String Cp1253
public static final String Cp1254
public static final String Cp437
public static final String Cp850
public static final String Cp852
public static final String Cp857
public static final String Cp860
public static final String Cp861
public static final String Cp863
public static final String Cp865
public static final String EUCJIS
A double 7-bit byte set, restricted to A0-FF in both bytes
public static final String GB2312
A mixed one byte, two byte set:
20-7E = one byte ASCII A1-FE = two byte PRC Kanji
public static final String KSC5601
public static final String SJIS
A Microsoft code that extends csHalfWidthKatakana to include kanji by adding a second byte when the value of the first byte is in the ranges 81-9F or E0-EF.
public static final String UTF8
UTF-8 is a 1 to 3 byte universal encoding of 2-byte Unicode in which ASCII has a one byte representation. That is, unlike 2-byte Unicode, ASCII is a subset of UTF-8. This makes UTF-8 a File-Safe encoding, and is therefore known as File System Safe Unicode, or Unicode FSS.
Method Detail |
public static String getInterBaseCharacterSetName(String encoding) throws SQLException
public static String[] getSupportedEncodings()
|
1.50.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |