Swing , input and display Chinese

I have Java Swing application(JDK 1.5), but I could not input Chinese characters. I have two questions:
1. Where to download Chinese font?
2. How to configure it?
I am using JDK 1.5. working on this for three days, but no progress.
Thanks for help.
DAVE

I don't know anything about kawa but I would be
surprised if you couldn't set the file encoding it -
taken that it is quite popular. If you can't do it
you'll have to change your editor. At least Jext knows
unicode: www.jext.orgyup i m quite surprised too. Kawa cannot support chinese character so i used another editor to input all the chinese characters i need and use kawa to compile..
and it works.
tks a lot..
dollars awarded.

Similar Messages

  • 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;

  • Object Manager cannot allow me to input and display chinese

    hi, all,
    i am using sgd 4.2 with oriental fonts installed.
    I cannot input chinese for person name in Object Manager. If I create an application with chinese name through other mechanism. It cannot display the chinese correctly.
    It displays square for the chinese character in Object Manager.
    Can anyone help?
    best,
    ying

    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;

  • Get input and display output on same screen for report

    Hi frnds,
    two params
    that is mat.no,desc.
    enter the mat.no and also display the description of that mat.no in same input screen for the report.
    How can i archieve .
    Thanks in advance.

    Hi,
    It is not possible in Dialog Programming too. But there is an alternative. You can make the material number field as drop down. Assign a function code to that. Now in PAI you can code accordingly to display the description.
    In TOP.
    TABLES: mara, makt.
    DATA  gv_maktx TYPE makt-maktx.
    In PAI.
    CASE sy-ucomm.
    WHEN 'F_MATNO'        "function code assigned to the material number drop down field
         SELECT SINGLE maktx
          FROM makt
          INTO gv_maktx
          WHERE matnr = mara-matnr. " mara-matnr is the dictionary reference to the material number drop down field in the screen.
          makt-maktx = gv_maktx.    " makt-maktx is the dictionary reference to the material description field in the screen.
    ENDCASE.
    Thanks,
    Sri.

  • Input and show chinese Big5

    Hi All,
    I am using Weblogic6.0sp2, Oracle 8.1.7 both on solaris 2.8 using
    default locale. I have using thin client JDBC connecting from Weblogic
    to oracle. Does any one can give me advice the configuration of weblogic
    or oracle which can support the chinese Big5?
    Thanks in advance
    Derek

    I highly suggest setting up the database as UTF-8 so you can support
    other languages later if need be. The strings will be unicode in
    Java/WebLogic anyway and you can encode them into Big5 later easily if
    you want to.
    Derek Lee wrote:
    Hi All,
    I am using Weblogic6.0sp2, Oracle 8.1.7 both on solaris 2.8 using
    default locale. I have using thin client JDBC connecting from Weblogic
    to oracle. Does any one can give me advice the configuration of weblogic
    or oracle which can support the chinese Big5?
    Thanks in advance
    Derek

  • MS Notepad unable to display the Chinese characters I type and display them as squares

    MS Notepad is unable to display the Chinese characters I type and display them as squares. But when I copy those squares on notepad to Wordpad or MS Word, they display the Chinese characters just fine. I've no idea why those Chinese characters I type can't display properly on notepad. I check the font of the notepad and it's the default. I've another Windows Vista desktop computer which has notepad of the similar setting and display Chinese characters just fine. Both are using Chinese (Simplified) - Microsoft Pinyin New Experience Input Style to input those characters. But I don't understand why my Windows 7 is facing this problem.

    Hi,
    Notepad is a very simple text editor BUT it will work if you use the SAME language in Windows. Please try:
    1. go to control panel, click "Clock, Language, and Region"
    2. click "Change location" under the "Region" section
    3. go to the "administrative" tab, then click "change system locale...", then select "Chinese".
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Capturing and displaying user input in Crystal Reports

    Hi all,
    Iu2019m creating a crystal report with SAP as data-source and want to capture user input and display it on the report.  I have defined parameters to capture the input and added them to the report header.   I have then created formula fields to capture user input using the JOIN statement to accommodate multiple values.   Everything works well when users enter values for all the parameters, but when they leave some blank I get an error message u201CParameter value is nullu201D.
    Has anyone encountered this type of problem;  Anyone knows how to resolve this?

    Hi
    In parameter window make the Optional prompt to True.  And change make change in your record selection formula like this :
    (not HasValue({?PrjMgr@SELECT Firstname,lastname FROM OHEM}) OR
    ISNULL({?PrjMgr@SELECT Firstname,lastname FROM OHEM}) OR
    ({?PrjMgr@SELECT Firstname,lastname FROM OHEM} = '') OR
    {OHEM.firstName} = {?PrjMgr@SELECT Firstname,lastname FROM OHEM})
    Regards

  • Entering and Displaying English and chinese

    We are running Oracle 8i on a w2k server and have w2k clients
    configured to enter and view English, Simplified and Traditonal
    Chinese. Oracle is setup with UTF8. We atn to be able to enter
    and display both english and chinese characters simultaneous in
    the forms as we enter data as well as in reports. Everything is
    done in Oracle forms/reports 6. I have tried various nls
    settings but nothing seems to work to provide both entry and
    viewing of the characters as well as providing properly
    formatted reports.
    Jim Liddil

    I also have a customer that is having a similar problem. The
    general issue is that the customer wants to use Win2000 in
    English but within a Forms 6.0 application fill in certain fields
    with Simplified Chinese characters. I think they had difficulty
    getting it to work even if the default is all Chinese, that is
    both the Windows locale default and the NLS settings. We're
    mostly beyond that but the real goal is to allow the user to run
    in English (but with language supplement support available for
    Chinese) then when the user hits the appropriate fields in the
    application he toggles to a Chinese characters to input. So we
    can't seem to find the right combination of NLS settings,
    patches, etc. that would support this.
    At one point we apparently were able to have the application
    accepting the Chinese characters but to do so meant that many of
    the Oracle Forms default menu items, dialogue buttons and
    message bar were displayed in Chinese.
    The simplest explanation: allow to run Forms 6 app in English.
    Allow storing of Chinese characters into fields at the will
    of the user. Database stores characters correctly. Application
    (Forms) echoes characters correctly , not ???? or boxes .
    We need to have a definite answer to the customer within 2 weeks
    meaning we either have a fix now for their current ISO 9000
    certified application based on Forms 6.0 or we know through
    testing that it absolutely will work when we rev. the application
    to Forms 6i. The latter revision of their application is not due
    to ship until mid-2002.
    Any suggestions or referrals are appreciated.

  • UTF8 and Traditional chinese display problem

    I have having problems displaying chinese because I am trying to pull data from 2 difference sources into a 3rd source.
    Question 1
    I am using Oracle 8.17 on Sun Solaris - (in China).
    The NLS_LANG on that machine (Machine name is CNCIM) is American. The NLS_CHARACTERSET is ZHS16GBK.
    We are using Java to write data into this server. The data has been stored as UTF8.
    When I use TOAD, to look at the chinese characters, I cannot see the actual characters.
    What I see in TOAD is something like this
    上海市山东中路145号
    Convert function does not seem to work. Can someone advice me how I can see the raw data in chinese?
    Question 2
    Currently, I am also trying to import the above UTF8 data into my Local Oracle Machine (APDM)
    The NLS_LANG on that machine is American. The NLS_CHARACTERSET is WE8ISO8859P1.
    And at the sametime, I am trying to import information from SQL2000 into Local Oracle Machine (APDM).
    I was told that the data in SQL2000 has been setup as tradtional Chinese.
    What type of settings should I have on my local machine(APDM) to allow me to view Chinese data (From CNCIM - UTF8) and to see the SQL2000(traditional chinese) data at the same time? Should this settings
    be configured for my client too?

    My hunch is that Toad either does not support the display of Chinese characters, at least not without setting your Windows regional settings to Chinese. Can you retrieve the data via your Java application?
    If your database character set is ZHS16GBK, that should be the character set that the data is stored in the database. If your Java application is sending over UTF-8 encoded data, you need to ensure that the NLS_LANG settings on the client machine identify the data as UTF-8 so that Oracle can do the necessary character set conversion.
    If your local database is using the ISO 8859-1 character set, it cannot store Chinese data. You would need to create a new database with a character set that supports Chinese if you wanted to store Chinese data there.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to display and enter Chinese in the application?

    Hi,everyone,I encounter such the problem about characterset.When I run the application on the jdeveloper3.1,I can't enter or display chinese,but VisualAge3.0 can do it.I don't know how to solve it?
    Thanks in advance!

    There may be a simpler answer... but
    Generally speaking, the latest version of the JDK 1.3 does a much better job with internationalization / localization.
    As you know, you can switch JDK's that JDeveloper works with (documented in help)
    so that JDeveloper can work with JDK 1.3.
    I would suggest you use JDK 1.3 RC2 or higher and see if this solves your problem.
    One reason that Visual Age works is probably due to VA is using the IBM libraries which include additional enhancements.
    Other comments/suggestions welcome,
    -John
    null

  • Traditional and Simplified Chinese characters couldn't be displayed!

    Hi all,
    Recently I installed an Oracle 9i Database Server (9.0.1).
    Problem regarding the globalization support issue was encountered after the installation of Oracle 9i Database Server. Parameters in NLS table had been checked that the language is initially set to AMERICAN, territory is set to AMERICA and the character set is UTF8.
    Since traditional and simplified chinese characters must be required for the HK server, it is believed that the above parameters should be altered to TRADITIONAL CHINESE / SIMPLIFIED CHINESE, HONG KONG and ZHT16MSWIN950 / ZHS16CGB231280 respectively.
    I tried to alter the NLS_DATABASE_PARAMETERS, but it’s not working; should the NLS_SESSION_PARAMETERS be changed instead? I also tried this one, changes is taken place but the chinese characters still couldn't be displayed, just bunches of 亂碼 (meaningless codes) instead.
    Another piece of information is that the Oracle server is installed on the basis of Windows Server 2003 Standard Edition, should the Language for non-Unicode programs (which is in the “Advanced” page of the Regional and Language Settings) be configured to Chinese (HKSAR)? Various combinations, in terms of English (US), Chinese (HKSAR), Chinese (PRC), Chinese (Taiwan), had been taken turns to test for the results. However, same results happened.
    Hence, how should we configure? Please advice us.
    P.S.# It is known that this question should be placed in the "Globalization Support" forum, I have done that; however, it is hoped that I could seek more advice in here.
    Thx in advance.
    Karen

    Karen,
    Setting up such an environment requires some sophistication and know how. I would advise reading though the Globalization Support Guide and som of the papers on the Globalization Home Page http://www.oracle.com/technology/tech/globalization/index.html
    before randomly attempting to change parameters. If your requirement is to store and retrieve both TRADITIONAL and SIMPLIFIED CHINESE then your database needs to be Unicode (UTF-8). Designing an application that allows you to easily access multilingual data requires careful design and planning. If you are simply trying to quickly display data you have in your database you might want to use iSQL*PLUS which is browser based and will allow you to display Unicode data. It might also be helpful to take a look at the following paper: http://www.oracle.com/technology/tech/globalization/pdf/globalization-best-practices.PDF

  • How to input & display Chinese characters?

    How could I use Chinese pinyin method  on the table ? 
    And show Chinese characters in documents to go?
    Any ways to resolve this problem?
    TX
    7290--------8830-------9800-------playbook and ... 9900?

    you are correct. Every single BlackBerry Playbook sold in the world lacks Chinese input.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Parsing large xml file and display using swing

    Hi all,
    I want to read a large xml file and display graphically in swing as a tree structure.
    I implemented it and works fine for files of 5MB size after increasing the jvm heap size (-Xmx). If the file size is larger than 5MB it throws out of memory error. I'm creating a custom datastructure from the xml and I'm using sax parsing.
    After displaying the datastructure, the user could do some operation on this, like search etc.
    Can any of you suggest a method, to support larger files ? What I'm looking for is create the datastructure in file system, rather than in memory.
    Any other tips for memory management would be greatly appreciated
    Thanks in Advance.
    Nisha

    Use a memory-mapped file?
    http://javaalmanac.com/egs/java.nio/CreateMemMap.html

  • 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 a JLabel

    I wish to display Chinese characters in a JLabel WITHOUT setting the JLabel's font. The following code works fine under Java 1.4.x for Mac OSX, and Java 1.5 for Windows. However, the characters do NOT display properly under Java 1.4.x for Windows. Does anyone have any idea why? I really need to get this to work under 1.4.x for Windows without having to call JLabel.setFont(...). Maybe it's a known bug in 1.4.x that has a workaround (hopefully)?
            javax.swing.JFrame frame = new javax.swing.JFrame("Chinese Test");
            JLabel label = new javax.swing.JLabel("\u54C8\u7F57", javax.swing.JLabel.CENTER);
            frame.getContentPane().add(label, java.awt.BorderLayout.CENTER);
            frame.getContentPane().setSize(200, 200);
            frame.setLocation(50, 50);
            frame.setSize(200, 200);
            frame.setVisible(true);

    1. I do not wish to set the Font on the label(s) because we have localized our application in many languages using a custom localization scheme and I do not want to change all of the code.
    2. Yes, I have all the forms of Chinese installed on my Windows system.
    3. I found that if I use an HTML string of the form: <html><body><font face="SimSun">\unicode chinese chars...
    then THAT WORKS. The JLabel renders the String in Chinese. This might be a good option for us.
    4. All of it works automatically without the need for an HTML String under Java 1.5 because evidently 1.5 has built-in support for setting the proper font on the widget after analyzing the unicode characters.
    - Eric

Maybe you are looking for

  • 500 GB DVR...*still* haven't received message about ordering it, been *WEEKS* now

    I've put myself on the list to be notified when it will be available, and still haven't gotten email to upgrade.  I signed up right when it first became available to do so, and this was several weeks now.  Anyone know why it's taking so long, and whe

  • My IPAD2 is failing to restart after 10 seconds

    What happened : after full recharge following a full discharge, IPAD cannot restart, reboots after 10 seconds on and on and on I have rebooted it once using advice taken here, and was able to restore on itumes , but then got worse with reboot after 1

  • Iphone is disabled and asking for passcode.

    My sister-in-law received a new iPhone 3GS from a co-worker who already had one. She gave it to me. It has never been activated or anything. The message on the screen says, "iPhone is disabled. Try again in 22,168,144 minutes".... WHAT? It will only

  • Steam bad game performance

    Hello! My system is 64bit Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz with Nvidia G635M  on my lapton. There are a lot of post in Internet saying that Left for dead 2 in Linux has more fps than in windows. But for me on Windows everything is smooth, but

  • Formulae Calculation

    Hi , I have Query where i have 5 fields where i need to check the condition like this. f1<=0 and f2>0 and F3<=0 and f4 <0 then it should copy to f5 i ahve done checking the same but problme is if F1<=0 and F>0 then it should go to f5 without checking