 |
|
Oracle Tips by Burleson |
Oracle 10g Character Set Conversion (JDK 1.4 and Later)
in OGS
In addition to locale conversion capabilities,
OGS contains a set of APIs that allow users to perform various
Oracle character set conversions. This set of APIs provides for the
Oracle-specific sets of characters that Java cannot handle with its
own classes.
JDK 1.4 and J2SE provided an interface for
developers to extend Java's character sets. OGS was designed to
utilize this feature to provide implicit support for Oracle's
character sets. You can use J2SE APIs to get Oracle-specific
behaviors or you can directly access the needed character set
conversion APIs in OGS.
DBAs should note that the java.nio.charsetjava
package is not available in JDK versions
before 1.4, therefore, you must install at least JDK 1.4 to use
Oracle's character set plug-in feature.
Oracle's character set names are proprietary.
To protect against potential conflicts with Java's own character
sets, all Oracle character set names have been given an X-ORACLE-
prefix for all implicit usage through Java's API.
If JDBC is used, the JDBC driver provides the
necessary character set conversion between the application server
and the database; so APIs that explicitly call OGS character set
conversions are not required.
Get the complete Oracle10g story:
To get the code instantly, click here:
Need an Oracle Mentor?
BEI is now offering personal mentors for Oracle DBAs where you can have an
Oracle expert right at your fingertips, anytime day or night. We work with
hundreds of Oracle databases every year, so we know exactly how to quickly
assist you with any Oracle question.
Why risk an unplanned outage? You can now get telephone access to Don
Burleson or any of his Oracle Certified DBAs with more than 20 years of
full-time IT experience. Click here for details:
http://www.dba-oracle.com/service_oracle_backup.htm

|