How to display Chinese characters in Oracle?

I am using Oracle 8i with Language settings as AMERICA.
I am displaying records which is contain Chinese characters.
But it is not displayed properly in Oralce.
How to change the settings to display Chinese characters?
Thanks

It could be possible to display Chinese characters using SQL Developer without any specific NLS_LANG setting because SQL Developer is using JDBC which doesn't use NLS_LANG setting according to When is NLS_LANG used ?.
For example, I'm able to display the following Chinese character in SQL Developer 1.2.0 on Windows XP Pro with French Windows setting and NLS_LANG set in Windows registry to FRENCH_FRANCE.WE8ISO8859P1.
select unistr('\8349') from dual;

[pre]
Message was edited by:
        Pierre  Forstmann                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Display chinese characters from oracle 8i database using UTF-8

    I have written a program to retrieve chinese characters from the database and display in the web page.If I change the encoding of the webpage manully it displays the chinese characters(比分卡片 ).Or it shows the junk characters(�������� ).Can anybody help so that do I have to do any encoding or any other settings?.I am using Jdeveloper.
    Rgds
    Ganesh
    <HTML><HEAD><TITLE>Welcome to METRO</TITLE>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <%//@ page contentType="text/html; charset=UTF-8" %>
    <%@ page import="java.io.*,java.io.InputStream,java.nio.*,java.lang.*,java.util.*,javax.naming.Context,java.sql.Connection,javax.sql.DataSource,javax.naming.InitialContext,java.sql.*" %>
    </HEAD>
    <BODY >
    <%
    String value="";
    try{
    Connection dbConn;
    Statement stmt=null;
    Context jndiCtx=new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)jndiCtx.lookup( "jdbc/webdbPooledDS" );
    dbConn= ds.getConnection();
    stmt=dbConn.createStatement();
    String sql="select prog_name_LL2 from wb_prog_new_metro where table_name='SCORE_CARD'";
    ResultSet rs = stmt.executeQuery(sql);
    if( rs.next()){                    
    value=rs.getString(1);
    out.println(value);
    }catch(Exception e){
    System.out.println("Exception ="+e.getMessage());
    %>
    </BODY></HTML>

    Make sure that you have a Unicode font that supports Chinese characters. I have been testing the support of Unicode text (allows many other character and image based languages to be displayed) and have found that it depends on what fonts are available on the system you're viewing the report on. Unicode is supported in Crystal (since version 9 I believe) but it will display '?' or '[]' if there isn't a font to render the text properly.
    This font supports loads of languages: http://www.code2000.net/code2000_page.htm

  • How display chinese characters?

    Hi all,
         I want to display chinese characters in JTextPane/JTextField. I code a small program to try but can't get the correct result. The following is my program.
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    public class TestBig5 extends JFrame {
         public TestBig5() {          
              String str = readInput();     
              JTextField tp = new JTextField();
              tp.setFont(new Font("Kai (big5.eten.3.10-1)",Font.PLAIN,16));
              tp.setLocale(Locale.TAIWAN);
              tp.setText(str);
              getContentPane().add(tp);
              pack();          
              setVisible(true);          
    static String readInput() {
    StringBuffer buffer = new StringBuffer();
    try {
    FileInputStream fis = new FileInputStream("testbig5.txt");
    InputStreamReader isr = new InputStreamReader(fis, "Big5");
    Reader in = new BufferedReader(isr);
    int ch;
    while ((ch = in.read()) > -1) {
    buffer.append((char)ch);
    in.close();
    return buffer.toString();
    } catch (IOException e) {
    e.printStackTrace();
    return null;
         static public void main(String args[]) {
              new TestBig5();
    The problem is that the JTextField only shows blank space.
    testbig5.txt is a text file that contains big5 encoding characters.
    "Kai (big5.eten.3.10-1)" is the only chinese font in my system, and I can use it to display chinese characters in netscape. And the file testbig5.txt can also be displayed in netscape correctly.
    I have also tried to use font.properties.zh_TW_Big5 but still no success.
    please advise what should I do so that the problem can be fixed. And following is my system config.
    Sco unix 5.0.5
    JDK 1.2.2
    Thanks in advance.
    Anson

    (1) First of all use FileReader and not inputstreams. The diff. is that streams are not unicode compliant whereas readers are.
    (2) Similary use only generic fonts.For example, this prints fine for me
    jTextField1.setFont(new java.awt.Font("Serif", 0, 12));
    jTextField1.setText("Serif \u65e5\u672c\u8a9e");
    [email protected]
    HP

  • Cannot Input and Display Chinese Characters by using ODBC Applications

    Dear all,
    I am trying to input the Simplified Chinese Characters in the Oracle Database Ver 9.2 running on a UNIX AIX server. The client application we are using is th MS Access 2003 running on a MS Windows XP English version SP 2 without multi-language pack. MS Office 2003 is also an English version.
    Database setting is:
    NLS_CHARACTERSET=US7ASCII
    NLS_NCHAR_CHARACTERSET=AL16UTF16
    The Oracle Client used is also ver 9.2 with the ODBC driver ver 9.2. I have tried the following NLS_LANG settings by chaging the registry without any NLS_LANG environment settings:
    AMERICAN_AMERICA.ZHT16MSWIN950
    AMERICAN_AMERICA.ZHS16GBK
    AMERICAN_AMERICA.ZHT16HKSCS
    AMERICAN_AMERICA.AL32UTF8
    I have tied to load some Chinese Characters in by sqlload and by using the NLS_LANG AMERICAN_AMERICA.ZHT16MSWIN950, AMERICAN_AMERICA.ZHS16GBK and AMERICAN_AMERICA.ZHT16HKSCS, they can be display perfectly in SQLPLUS. But when using the same NLS_LANGs and display in the ACCESS, only ???? are displayed.
    When I tried to insert Chinese in ACCESS, the character changed to ???? again. No matter what Chinese characters I inserted by MS ACCESS, the ???? code can be dump with the binary code "03, 0f".
    Are there any methods or settings I need to change to make ACCESS an application for inserting and displaying Chinese characters from the Oracle database?
    I have tried to set the Non-Unicode setting in the Windows Locale setting:
    Chinese (Taiwan) (With AMERICAN_AMERICA.ZHT16MSWIN950),
    Chinese (Hong Kong S.A.R) (with AMERICAN_AMERICA.ZHT16HKSCS) and
    Chinese (PRC) (with AMERICAN_AMERICA.ZHS16GBK)
    when inserting the Chinese Characters by Access. But they all failed with ???? inserted in the DB.
    Please kindly advise what should be done.
    Thanks.

    Are you trying to store the character data in char/varchar2 columns?
    If that's the case then you have a problem, since a US7ASCII character set can only handle, well, ascii data.
    If you are trying to store the data in columns of nchar datatypes, then there might be a problem with literals because literals are converted to database character set first, before conversion to national (nchar) character set. Such data loss can also happen depending on how binds or oci calls are performed.
    You could use the dump() function to verify what's actually stored in a database column, without a db - client conversion happening that may distort the facts.
    Example:
    SQL> select col, dump(col, 1016) from table where some_condition;

  • Problem displaying chinese characters

    I have got the problem with displaying chinese characters in the webpage after fetching the data from database.
    I am using Oracle IAS webserver and oracle 8i as the database which is in UTF-8 characterset.I am getting the out put in the chinese if I use this code.
    String value1 = new String(value.getBytes("ISO8859_1"), "GB2312");
    I am getting the out put using this code in this format
    ��������
    &#27604;&#20998;&#21345;&#29255; basically this code does that.(String value1 = new String(value.getBytes("ISO8859_1"), "GB2312");)
    But some body told me that I have to do some settings in the server.I am using oracel IAS.Can you suggest me any thing?.
    Here is my full code
    <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <%@ page import="java.nio.charset.Charset,java.util.Locale,org.apache.struts.action.*,java.io.*,javax.naming.Context,java.sql.Connection,javax.sql.DataSource,javax.naming.InitialContext,java.sql.*" %>
    <HTML><HEAD><TITLE>Welcome to METRO</TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Content-Encoding" content="UTF-8"/>
    </HEAD>
    <BODY >
    <style type="text/css">
    .tb {      
    border: 1px solid #ddd;
    border-collapse: collapse;
    font-family:arial ,sans-serif;
    font-size: small;
    height:100%;
    width:100%;
    color:#00000000;
    </STYLE>
    <%
    String value="";
    try{
    Connection dbConn;
    Statement stmt=null;
    Context jndiCtx=new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)jndiCtx.lookup( "jdbc/webdbPooledDS" );
    dbConn= ds.getConnection();
    stmt=dbConn.createStatement();
    String sql="select prog_name_LL2 from test_table where table_name='test'";
    ResultSet rs = stmt.executeQuery(sql);
    if( rs.next()){                    
    value=rs.getString(1);
    System.out.println("value="+value);
    out.println("<table class='tb'><tr><td>"+value+"</font><br>");
    String value1 = new String(value.getBytes("ISO8859_1"), "GB2312");
    out.println(""+value1+"</td></tr></table>");
    rs.close();
    stmt.close();
    dbConn.close();
    }catch(Exception e){
    System.out.println("Exception ="+e.getMessage());
    %>
    </BODY></HTML>

    Follow the steps as listed below:
    1. Is the Font available on Printer
               Goto SP01 transaction -> Enter the Spool Number -> Execute
    2. Does device type/Spool Server support the font
               Goto Transaction SPAD and click Output Devices
    3. SAP level Multibyte setting in place
               Click ALT + F12
               Select Options -> I18N
               Tick Activate Multibyte functionality
    4. Is appropriate font for the language used
              For Simplified Chinese (ZH)  language use font  CNHEI, CNKAI, CNSONG
    SAP Notes related to Fonts
    a.0000776507 SAPscript/SmartForms: Which fonts for which languages?
    b.0000323736 Restrictions with "PDF print" through spooler
    c.0000317851 Creating PDF format using the SAP spooler in 4.6C/4.6B/4.5B
    d.0000012462 How can I define a new printer font?
    e.Note 62178 Device types for the Japanese version of the R/3 System

  • Chinese Data Fields not displaying Chinese Characters

    Hi There,
    Wonder if someone can help. We are currently running reports in Crystal 8.5 but are in the process of upgrading our business systems to latest version and this includes converting all our Crystal 8.5 reports to Crystal Reports XI R2 SP4.
    During the process we are experiencing some difficulties in displaying Chinese characters, which have previously worked fine in version 8.5. The system we are running Crystal from has Oracle client 11 installed and the OS system locale is set to Chinese PRC. Our application is displaying Chinese characters properly and if we have any text fields on the report, these are also displaying properly when changing Font to Arial Unicode MS. The only thing that doesn't display properly is the field data which after checking has the correct Chinese data stored in the database. For some reason Crystal 11.5 doesn't seem to be transferring the data correctly which points to some sort of encoding problem.
    Is there something I am missing here or is there something else I need to install for this to work?
    Any hep would be appreciated.

    What is your Oracle database's language set? Is it set to UTF-8 or non UTF-8 (such as American_America.WE8ISO8859P1" )?
    There is a similar issue tracked under ID ADAPT00528561 (Crystal cannot display non-UTF-8 Chinese characters from an Oracle database ) and has been fixed and you should set the following registry key to make it effective:
    Set the following registry key "UseOSLocaleForConversion" to "Yes" under:
    HKEY_LOCAL_MACHINE\Software\Business Objects\Suite 11.5\Crystal Reports\Database\Oracle

  • How to display Chinese in AWT (Urgent!)

    I have to problems,
    My computer is Win2K Traditional Chinese
    I try to run an application which Display chinese characters on the component of AWT. Although the application can run and can display correctly, there are exceptions. It throws the following error continuously,
    sun.io.UnknownCharacterException
    sun.io.UnknownCharacterException
    at sun.io.CharToByteISO8859_1.convert(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontChars(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontString(Unknown Source)
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    sun.io.UnknownCharacterException
    sun.io.UnknownCharacterException
    at sun.io.CharToByteISO8859_1.convert(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontChars(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontString(Unknown Source)
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I try to encodes the string as follow, however, it throws another exception
    String x = new String("ChineseWordHere".getBytes("ISO-8859-1"), "Big5");
    It throws exception:
    java.io.UnsupportedEncodingException: Big-5
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at java.lang.String.getBTCConverter(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at Test1.<init>(Test1.java:8)
    at Test1.main(Test1.java:13)
    Do you know how to solve these two problems??
    (The most concern is that how to display Chinese in AWT)
    Thanks

    For starters, you shouldn't use the 8859 encoding since it only supports single byte representations. You should be able to successfully use UTF-8. Then to actually display the characters...or to type them, make sure you have an input method editor (IME) that supports the language - in theory if you are using a Chinese Win2k, you already have this with windows - just use the right font (I think MS Gothic should work) to show the characters. You might want to consider switching to Swing.
    Good luck

  • Displaying Chinese characters in SQL*Plus

    DB version: 11.2
    OS Version : AIX 6.1
    DB characterset:AL32UTF8
    To display chinese characters in SQL*Plus, I did the following:
    $ export LANG=zh_CN.UTF-8
    $ export LC_ALL=zh_CN.GB2312
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
    $
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on ÐÇÆÚÈý 5ÔÂ 2 15:52:33 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning option
    SQL> ALTER SESSION SET NLS_LANGUAGE='SIMPLIFIED CHINESE';
    Session altered.
    SQL> ALTER SESSION SET NLS_TERRITORY='CHINA';
    Session altered.
    SQL> select unistr('\8349') from dual;  ---- not 100% sure if this is the way to verify if chinese characters can be displayed.
    UN
    ²Ý                 ----------------------------------------> Getting a junk character instead of chinese If I was using putty, are the above steps enough to get chinese characters displayed ?
    Our ssh client is Tectia (not putty).
    According the below ML Note, the SSH client has to configured correctly to use globalization features.
    +The correct NLS_LANG setting in Unix Environments [ID 264157.1]+
    Googling "Tectia + Chinese" didn't return useful results

    I understand that you are talking about Windows SSH Client.
    For Putty, you should set:
    $ export LANG=zh_CN.UTF-8
    $ export LC_ALL=zh_CN.UTF-8
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
    and configure Putty in Window->Translation to use UTF-8.
    There is nothing about this subject on Tectia website and in their manuals, so my best guess is that the client requires Windows code page to work correctly. In such case you need to set your Windows system default locale (locale for non-Unicode programs) to Chinese and use the following settings on the server:
    $ export LANG=zh_CN.GBK
    $ export LC_ALL=zh_CN.GBK
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
    Verify with 'locale -a' that the setting zh_CN.GBK is supported on your system.
    -- Sergiusz

  • JEditorPane -- displaying chinese characters in browser

    Is it possible to display chinese characters in an applet in a browser, I have read Jaric S.'s article on it.. but it is a little confusing.. however without doing any of that coding I have chinese showing up on one machine in IE, but not on any other machines with IE. Any thoughts anyone?

    Is it possible to display chinese characters in an
    applet in a browser, I have read Jaric S.'s article on
    it.. but it is a little confusing.. however without
    doing any of that coding I have chinese showing up on
    one machine in IE, but not on any other machines with
    IE. Any thoughts anyone?Browser Java is particularly sensitive to the version of Java the browser supports. Some browser companies, notably Microsoft, haven't updated their Java implementation in 4 years. Likewise users who are using old versions of other browsers probably have old versions of Java. This makes it very hard to predict how anything will work when it depends on a browser's VM.
    There are two ways to combat this. First you can use Sun's Java Plugin to replace the VM used by your browser with a modern one that supports your applet. Second, you can use Java WebStart which allows programs to be launched from a browser but run in an independant VM. These two things might help you get consistent results for your applets.
    Hope this helps,
    Brian.

  • How to display unicode characters

    hi
    How could we save, display, write or read Unicode characters.

    Thanks a lot. I fully understand what you have said.
    My test is running under Traditional Chinese "Big5" Windows XP system.
    Chinese "Big5" font can display on a Console window. I can even input Chinese into the console window.
    Or, in another word, I can TYPE a text file which contains "Big5" Chinese characters and show from the Console window. I assume this will prove that the Console window do know how to handle Chinese characters.
    Now, my test is trying to CONVERT a Unicode string into a Chinese character string expecting the resulting Chinese string can be output into the Console window and let the XP Console window to handle the Chinese character display.
    My main concerned question is "How can I CONVERT a Unicode string into a Big5 Chinese character string?"
    String tstr = new String("\u39321\u28207","big5");
    It seems this statement is INCORRECT, isn't it?

  • Hi, am trying to display chinese characters

    hi,..i have problem displaying chinese characters using the reporting tools. i even changed the .jsp to use UTF8 encoding but the jsp doesnt display the correct chinese characters. Anyone can help ?

    Hi Teo Kai Liang,
    In order to display UTF-8 characters in the web output of your report, when it is deployed using the JSP engine (instead of rwservlet), you would need to add the following tag to its JSP web source in Reports Builder, between the <HEAD> and </HEAD> tags:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    This will tell the browser to display text using the specified character set. I have verified this using a report containing some static Simplified Chinese text in its web source.
    Thanks,
    The Oracle Reports Team.

  • I used to be able to display Chinese characters that

    I used to be able to display Chinese characters that were embedded in a flash video designed to run on firefox. This stopped once I upgraded to the latest version. Now only the romanised version displays. How do I fix this or revert back to the previous version?

    That's great but in the previous version it was not the case...what's changed? Is it possible to revert? If so, how?

  • How to display chinese on Nokia Xpress 5300?

    How to display chinese on Nokia Xpress 5300? I have chinese and english songs together in my phone. but the phone cannot display chinese characters. Any solutions?

    Sorry, my English is very pool.
    1.My source code is edit on windows98SE/Chinese.
    2.After compiler, My program can display Chinese on windows.
    3.When change os to linux and use KDE, I can see Chinese in source.
    4.If not create the "font.***.zh_TW" into /usr/.../lib,
    AWT/SWING component can't display chinese.
    5.If create the "font.***.zh_TW" into /usr/..../lib,
    the AWT component can display chinese and SWING component can't.
    6."LC_TYPE" is "zh_TW.Big5" and "LANG"="zh_TW.Big5".
    7.If re-complier in linux, The SWING component can't display chinese.
    8.When running, The system will display message
    "Warning:Cannot covert string "-default-ming-medium-r-normal
    -140---c-- big5-0".
    9.use command "xlsfonts | grep big5" can find font "-default-ming-...-big5-0".
    10.Check the "file.encoding" is "BIG5".

  • How to Insert  Chinese characters in Japanese Database

    Hi all,
    I am having following characteristics on my computer
    Machine OS --Windows Server 2003
    OS language --Japanese
    Oracle
    Oracle9i Release 9.2.0.1.0 - Production
    NLS_LANGUAGE     JAPANESE
    NLS_CHARACTERSET     JA16SJIS
    Now, i want to insert into database chinese characters. Please guide me how to do the following thing.
    How to insert chinese characters on local machine and if i want to insert on the remote databse (i can not create database link for remote database). I have to send batch file or SQL file and they will execute it on their side.
    if i use this command
    alter session set nls_language = "SIMPLIFIED CHINESE"
    and then insert the records and revert back to japanese character set. Is this correct way....?
    Thanks in advance,
    Pal

    As dombrooks has pointed out, unless all the Chinese characters you are trying to store can be represented in the Shift-JIS character set, which seems unlikely, but I'm not an expert on East Asian languages and I believe there are some glyphs that are shared between various languages, then you're not going to be able to store this data in this database in CHAR or VARCHAR2 columns.
    Depending on the national character set, you may be able to store the data in NCHAR/ NVARCHAR2 columns, though using these data types can substantially increase application complexities since various languages and libraries don't support NCHAR/ NVARCHAR2 columns or require you to jump through some hoops to use them. Your applications would also have to support both character sets, so your applications would all have to be Unicode enabled most likely, which is certainly possible but it may not be a trivial change.
    Justin

  • Displaying Chinese Character in Oracle Form 6i using Oracle 11g Database

    Hi,
    Please, can anyone send me the solution for displaying the Chinese characters in Oracle Form 6i using Oracle 11g database and also
    the configuration that has to be implemented.Its urgent.
    Thank You,
    Sridhar.T

    displaying the Chinese characters in Oracle Form 6i using Oracle 11g database I'm afraid you might have problems... see Implementing Chinese language in Oracle 11g

Maybe you are looking for