How to display chinese in applet?

I am using an english Win2K and IE6.0. In accessing a web site, the applet couldn't display chinese, instead, it displays little squares. What settings do I need to change? Or is it possible?
Thanks.

hi
I would recommend that you read the following article
http://www.onjava.com/pub/a/onjava/2001/04/12/internationalization.html
Jaric Sng

Similar Messages

  • 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

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

  • How to display Chinese language?

    There is a plan text file: article.txt, this file includes an Chinese article (Chinese Language).
    The web server is English system.
    Now I use a jsp file to display the content of this file, I use BufferedReader class to read the content of the file, then display it.
    I use contentType="text/html;charset=gb2312" also, but it cannot display Chinese Character correctly.
    Can anyone tell me how to display it?

    Hi i am having the same problem....how did you do it...can please help me
    <pre>
    <%@ page import="java.util.*,java.io.*,java.text.*,java.sql.* " %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <% response.setContentType("text/html; charset=UTF-8"); %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>
    </title>     
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />     
    <meta name="Generator" content="TextPad 4.0" />
    <meta name="Author" content="" />     
    <meta name="Keywords" content="" />     
    <meta name="Description" content="" />
    </head>
    <body bgcolor="#ffffff" background="" text="#000000" link="#ff0000" vlink="#800000" alink="#ff00ff">
    <%
    request.setCharacterEncoding("UTF-8");
    String str1 = "\u7528\u6237\u540d";
    String name = request.getParameter("name");
    if(name != null) {     
    // instead of setCharacterEncoding...     
    name = new String(name.getBytes("ISO8859_1"), "UTF-8");
    System.out.println(application.getRealPath("/"));
    System.out.println(application.getRealPath("/src"));
    %>
    req enc: <%= request.getCharacterEncoding() %>
    rsp enc: <%= response.getCharacterEncoding() %>
    str1: <%= str1 %>
    name: <%= name %>
    <%
    BufferedReader in = null;
    ArrayList str = new ArrayList(100);
    try {  
         in = new BufferedReader(new InputStreamReader( new FileInputStream("c:/Chinadescription\\coldtofu.txt"),"UTF-8"));
         String line;
         while ((line = in.readLine()) != null) {   
         line = line.trim(); //
         if (line.equals("[stop]"))
         break;
         str.add(line);
         finally {
         if (in != null) {  
         try {    
         in.close();
         catch (Exception e) {}
         for (int i = 0 ; i < str.size(); i++) out.println(str.get(i));
    %>
    <form method="GET" action="testcharacter.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="Submit" />
    </form>
    </body>
    </html>
    </pre>

  • How to display Chinese Charakters

    How can I display chinese Charakters in a efficient way
    Thanks

    AGHHH!!! Damn you java forum and damn your eyes. (i's)
    Assuming you mean in java?
    I did a program some time back that used a String array
    eg
    String []str ={"h","h#","?","?","?&","H","l","l#","l!","l@","L","/","/#","/!","/@","?",
    "m","m#","M","s","s#","s!","s@","S","r","r#","R","v","v#","v!","v@","V",
    "q","q#","q!","'","q@","Q","b","b#","b!","b@","B","t","t#","t!","?","t@","T",
    "c","c#","c$","c!","c@","C","~","~#","~!","`","~@","^","n","n#","n!","n@!","N",
    "x","x#","x!","x@","X","?","k","k#","k!","k@","K",",",",#",",!",",@","<",
    "w","w#","W",";",";#",":","z","z#","z!","z@","Z","y","Y",
    "d","d#","d!","d@","D","j","j#","j!","j@","J","g","g#","g!","U","g@","G",
    "-","-#","-!","-@","_","=","=#","=!","=@","u","[","[#","[!","[@","{","e","]","]#","]!",
    "}","f","f@","F","p","p#","p!","p@","P"};
    and the program was tuned to a
    xxx.setFont("otherScript",0,12);
    which was loaded onto the system
    The array can then be used to manipulate the output in a number of ways. In this case there was a keyboard of a button array eg;-
    for (int j=0; j<=str.length -1; j++){
         b[j]= new JButton(str[j]);
         b[j].setActionCommand(str[j]);
         b[j].setFont(f);
         panel.add(b[j]);
         b[j].setForeground(new java.awt.Color(255,20,45));
         b[j].setBackground(new java.awt.Color(20,40,150));
         b[j].addActionListener(this);
    // so with actionPerformed(ActionEvent evt){ // we have;-
    if(evt.getSource() instanceof JButton ){
        tansltnString += evt.getActionCommand();
    Also the str[int] value could be translated by other keys. Hope that helps.
    Sue x

  • How to display Chinese on BB8900?

    I have a BB8900 Curve with AT&T.  I want to be able to display chinese character on my BB.  Does anyone know how to do that?  Thanks

    There is advice in the link below that may be useful
    http://tinyurl.com/yatket9
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • How to display FileDialog in applet?

    Hi all,
    I looked FileDialog constructors but only Frame can be the owner of the dialog? Is there a way to do display it in applet?
    Thank you.

    Try:
    JOptionPane.getFrameForComponent(this);
    Remember:
    Applets need to be signed to access the file system.

  • How to display chinese

    please see picture,I want the Prompt display chinese
    thanks

    Sorry, we cannot see pictures.
    You need to provide version of JDev and a description of what you are trying to accomplish

  • How to display Chinese Character(s) in a image on a Linux platform?

    Hi,
    I have the following code that runs perfect on Windows XP system after I installed the Chinese fonts on it, and set the fontconfig file under jre.
    What the program does is: load an image file, write some Chinese chars in it and redisplay the image, so that the image will contain the Chinese characters in it.
    I ported the generating image with Chinese Characers part of code into a web application which the servlet returns the modified image to client. The web application is running on a linux box. However, when a user views the image on the browser, the Chinese chars are not well displayed (they are just several squares).
    My question is, does the problem comes from the Chinese fonts settings on the linux system where the servlet is running on? And, how to fix the problem, any simple links on how to do that?
    Thanks.
    public void paint(Graphics g) {
    ImageIcon photo = new ImageIcon("C:\\image.jpg");
    Graphics2D g2 = (Graphics2D)g;
    g2.drawImage(photo.getImage(), 0, 0, null);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    Font font = new Font("Arial Unicode MS", Font.PLAIN, 16);
    g2.setFont(font);
    g2.drawString("’†•¶", 140, 220);
    }

    "Arial Unicode MS" is the font provided by Microsoft, usually with MS Office products. I believe that's why those Chinese are rendered as square boxes on Linux. Either specifying some Chinese font available on your Linux box in the Font constructor, or using one of the logical fonts instead (for JDK5 and later) would help.
    Naoto

  • How to display chinese word when i logon in EN?

    Hi!
    I have a report that can upload an excel file using BAPI. Excel file will be extracted to an internal table at first and this excel file will contain chinese characters. When I logon to EN and run the report, I debug the internal table and found that my chinese characters become ????. But if i logon on chinese - ZH, i can see them clearly.
    however, for the same report, I tested on my friend's PC (vendor company). He logon to EN as well, but can see the chinese character very clearly.
    I check on RZ10, his development server profile has zcsa/system_language = E, zcsa/installed_languages = 12DEMH
    My develpment server is zcsa/system_language = E, zcsa/installed_languages = 12DEMZH
    My friend as an ABAPer has no idea on how the settings in developemt server work. Did I miss out somethings that disallow me to see the chinese characters in an internal table when i logon in EN?
    Can anyone help me to figure out this problem? Thanks a lot!
    best regards,
    ying ying

    Hi!
      I know the reason I can't see chinese characters during debugging if I logon to  English SAP system.
      I should click "Customizing Local Layout" at application bar --> Character Set --> Simplified Chinese. Those chinese characters that appear in ??? while debugging will change to proper chinese characters and uploaded successfully.
      If I go to FB03 and see the chinese characters in »áÒéÆڼ俧·È·ÑÓÃ, perform the same steps and those weird code will change to proper chinese as well.
      Thanks for all the replies and help. It's very appreciated. Thank you very much!
    Best regards,
    ying ying

  • Please instruct how to display Chinese in URL-based portlet

    Hi, I have installed Chinese support opca for my oracle portal and I tried to display Java Chinese portlet successfully.
    I've been testing the url-service now, and I can see the url sample portlets successfully too. However, when I try to display a website including chinese character (e.g.www.yahoo.com.tw, all characters are shown improperly. What else should I do or install?
    P.S. I am using PDK January version.
    Thanks for your help and replies!

    Hi,
    I got it by modifying the provider.xml file with the tag of:
    <charSet>BIG5</charSet>
    for the portlet displaying the website with Chinese Character. For detail, you may refer the the article 'PDK-JAVA XML Provider Definition Tag Reference v2 [HTML format] under the pdk\article directory.
    Thanks for your attention!

  • How Oracle tables can be used to display Chinese/Japanese characters

    If anyone knows how to display Chinese/Japanese characters from Oracle tables please reply this email. Thanks.
    Regards,
    Preston

    hi
    ->Also please let me know how the Oracle Lite is licenced if I have 300 odd users of this offline applications
    you should speak to your local oracle rep about that, for us for example they gave a pretty cheap packet for olite 10gr3+ 11g repository
    ->need to use only database part of Oracle Lite and not mobile server.
    you cant do that. mobile server is the application server that handles the synchronization process from the server side. when a client tries to sync he actually connects to the mobile server and asks for the database changes , the mobile server know what the client must get so he packs it and give it to him
    ->you can ofc make lightweight .net apps using olite. we make olite apps even for wince handhelds. so yes ofcourse you can. olite had a win32 client also.
    ->can it run from usb.
    ok here to be honest ive never tried that myself, looks kinda weird as a requirement to be honest but i dont see why it shouldnt run. if you set up the paths correctly you shouldnt have a problem i think.
    ->offline application will have more or less similar data entry forms and storage structure
    yes ofcourse , if i have 3 tables in server i can choose to have 2(or all ) of them on the client too. i can even separate which client gets what. for instance if client a sells houses in new york he will get only the house table rows for new york. if another sells for chicago he will get those instead and etc.
    ->all client apps are offline and sync periodically (when you choose) to the server

  • Display Chinese in iTunes v7.6

    I have some Chinese songs played in iTunes but all Chinese becomes garbage. Can someone advise me how to display Chinese correctly. Thanks!

    I had the same problem, this should work http://homepage.mac.com/thgewecke/mlingos9.html#itunes ID3Mod worked really well.

  • Display Chinese in iTunes v 9.1.1

    I have some songs in Chinese. All Chinese under Name, Album, Genre, etc. are in garbage. Can someone advise me how to display Chinese correctly. Thanks!

    You need to upgrade the computer's OS.
    (67489)

Maybe you are looking for