Need help in Displaying Chinese Character in JSF

Hi. Good Morning!
I'm having problem with displaying Chinese Characters in JSF. I've tried placing all the chinese words in the *.properties file however it doesn't work..
The result in the browser is something like this.
���� ��������� ���� ��������� ���� ���������

Hi,
When you say that you put Chinese characters in
*.properties files, can you be more specific? Did
you use native2ascii to convert the files to ASCII?
What is the character encoding setting for the JVM?
Have you sniffed the HTTP headers? If so, what's the
character encoding listed for the response?
Answers to these questions should help you nail down
the problem.
Regards,
PeterHi...
I did not use any converter like native to ascii... an example of what I placed in the properties file is:
title : 以下5种标签的表面要求列样
Request=条码离边框
Tablehead=透明标签
Note1= 透明标签
Note2= 透明标签
NoteA= 印商标图
then when i build the project in linux it turns out to be like this:
title= ???
Request=???
Tablehead=???
Note1= ???
Note2= ???
NoteA= ???
The character encoding for JVm.. i haven't check that yet nor know how...

Similar Messages

  • Need help on writing chinese character on Q10

    Could anyone help me how to write chinese character on English platform without changing the whole language to chinese?
    Thanks

    http://www.youtube.com/watch?feature=player_embedded&v=euRqXNYdUiE
    Blackberry Handwriting support english and chinese

  • Display chinese character HTML in iPS3sp3

    Hi there,
    I am using iPS3sp3 and I modified it so that JSP can display chinese character correctly. But somehow I still can not display the chinese character in normal HTML.For instance, I put chinese character in Ldap.properties file but when user go to the Ldap login screen, the chinese can not be displayed correctly. The following is the modification I have done and can anybody please give me some help?
    adding zh_TW in iwtPlatform-availableLocales
    adding zh_TW in iwtPlatform-locale
    adding BIG5 in iwtPlatform-HTMLcharset
    adding ips.locale=en_US,zh_TW,zh_TW.BIG5 in platform.conf file
    Setting, User's Default Locale: zh_TW
    Setting, User's Default HTML charset: BIG5

    Finally, I made it work. The solution is pretty straight forward. All I need to do is to convert these kind of html file to utf8 encoded files and then, it works perfectly. Hope this might be useful for some people.

  • Display Chinese character in iText

    hi all I need to display Chinese character in my pdf file
    I have iTextAsian.jar on my libraries , but the Chinese character did not show up
    nested1.addCell(new Phrase(chinessname));

    I download freetype-2.1.10,
    and I get ./configure --enable-static
    ./configure: make: not found
    how to continue ... inorder to create your owner font
    by the way I download the new extrajars-2.1.zip, this new jar supporting Chinese characters . but my first font is not working second font is work fine I don't know why?
    first one
    BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); not working
    //second one
    BaseFont bfChinese= BaseFont.createFont("MSungStd-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);
    Thank you!

  • How can i display chinese character in asp?

    ---windows2003
    ---iis6.0
    ---oracle92010
    ---oo4o
    oracle character set is we8mswin1252
    sqlplus display chinese character normally.
    when i export the oracle table into microsoft excel,the excel can display chinese character normally.
    but when i write code in asp.The IE can not display the chinese character?
    who would tell my why?
    Message was edited by:
    user525971

    Hi,
    here's a link to the SQL Developer forum: SQL Developer
    Frank

  • Need help on displaying the callers name on ip phone with cme using external directory

    Hello Guys,
    Need help on displaying the callers name on ip phone with cme while using external directory
    Thank you,
    Khaja

    Thanks for your help,
    Does it 100% work with CME. We use SIP and 2ring for external directory?  Thanks you.

  • DSO content can't display Chinese character

    Hello experts,
    I extract data from non-sap system (non-unicode) to BW DSO (7.0 unicode).
    The DTP, data extraction and the activation all work fine.
    However, the content of the DSO can't display the Chinese character.
    Is there any setting I miss?
    How can it display Chinese character as the data in source system?
    Any information is very appreciated.
    Thanks in advance.

    Hi,
    Make sure Chinese Language Patch applied on BW system. You can see Chinese does not mean Chinese Language Patch applied.
    However, even if Language Patch is not applied, you still can see Chinese in reports via Portal.
    Good luck
    Jonas

  • Display Chinese Character jsp page  by using UTF-8

    hi all,
    I have one jsp page have Chinese character, need to allow user input Chinese character into db, right now my situation is if I set <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> , the Chinese character in my jsp page I can't display correcly, but the inser is okI have to set encoding to big5, then I can't insert chinese character into my db correctly.
    can I use UTF-8 to display my jsp page, which have Chinese Character in there?Thank you!

    Hi Niklas
    thank you for the suggestion. somebody told me UTF-8 suppose work, only if you typing your Chiness character in UTF-8 formate, i don't know that is true or not, but that realy a challenge for me, I using jdbc , some time ago, and then stop, and on that period,if I got free time, I did try to learn some tutorials on struct, hibernate, like http://javaboutique.internet.com/tutorials/Struts/; http://courses.coreservlets.com/Course-Materials/struts.html
    recently I need to deal with some online form , first I want to use struct, but I keep got forwad problem, I forget the detail error message, and found not place to ask questions, so , I pick jdbc again, so ,if you have some useful link in struct or a nice community for people to learn struct, I am look forward to
    know that,
    by the way I set *<meta http-equiv="Content-Type" content="text/html; charset=big5" /> in my jsp*
    String dbURL="jdbc:mysql://localhost/survey?useBig5=true&characterEncoding=Big5"; in jdbc
    keep UTF-8 setting in mysql, it looks solute the problem that I had, hope that can enhabce our knowledge in that
    thank you for the help and wish good luck for future.

  • How can I display Chinese Character correctly in JSP

    <p>Dear Expert,</p><p>Now I develop web application which using CR report, the development tool is IBM RAD(rational) and the database is DB2 UTF-8. Because need user to input something in JSP, so the programmer use "GB2312" to convert to insert into the database. But when I create the crystal report and view in the web, the Chinese character can&#39;t disply correctly, like "???????", even I formated the font in report, doesn&#39;t work too.</p><p>And I set the report JSP charset to "GB2312" or "UTF-8", both of them failed. Following is my JSP seting:</p><p><%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%%></p><p>or <%@ page language="java" contentType="text/html;charset=GB2312" pageEncoding="GB2312"%%></p><p>And I think I must convert the data from database site firstly, then display, but I don&#39;t know where I can coding it and how to coding? Could any one tell me how to get it? </p><p>I use RAD(Rational) as development tools.</p><p>Thanks so much for your any comments. Many thanks!</p><p>Steven</p>

    <p>Hi Steven,</p><p>         It sounds like you are on the right track to get the Chinese data to appear up correctly in the report. Can you tell me if you are using the JSF viewer or the JSP viewer?</p><p>From what the developers are telling me the following should work:</p><p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">For JSP viewers to set  content type correctly you can either use</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial"><%@ page  contentType="text/html;charset=UTF-8" %></span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">Or</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">response.setContentType("text/html;charset=UTF-8âu20AC)</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">or  </span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">simply call  viewer.setOwnPage(true); if it not necessary to blend with other  pages.</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial"> </span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">For JSF viewer the  third option is not available.</span></font></p><p class="MsoNormal">What does your JSP page code look like? Also, what does the output look like?</p><p>Finally, one last thing is to ensure that the font you are using in the report is available to the engine at runtime. This will mean that it wll need to be installed on the application server where your JSP page is running. Give this a try and let me know what you find. </p><p>Regards,<br/>Sean Johnson (CR4E Product Manager) <br/><br/> Rate this plugin @ Eclipse Plugin Central          </p>

  • Mapbuilder cannot display chinese character properly

    I downloaded the latest mapviewer package.I found the mapbuilder cannot display chinese charater properly.neither the charater readed from database,nor the charater I typed. Every chinese character is substitude by a blank square.Anyone have good suggestion?

    Hi,
    this early preview has not been tested in other
    languages than English. We are aware of this problem
    with Chinese characters, and it may be related with
    font, but
    needs more investigation. Which Windows version are
    you using?
    To start the program setting the language to English
    you can try:
    java -jar -Duser.language=en -Duser.region=US ...
    Thanks.
    JoaoI tried . but no helpful. an My os is windows xp

  • Hi guys need Help with Displaying Splash Screen?!!?

    Hi Guys.
    Sorry for the last incomplete post my mistake!
    I need help displaying a splash screen as an advertisment or something before i have my main application run.
    Here is the code i wrote (it works as if it were a seperate application)
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
            int UpTime = 20000;
            Start(UpTime);
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                               dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
           public static void main(String [] args)
                 new SplashScreen();
    }but i now have a problem as i already have a main application done as i wrote this seperately. I now need to combine the two together. So what i did was in my Main Application wrote:
    Splash_Screen SS = new Splash_Screen();it then runs my Splash Screen class which i re-wrote to look as such:
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
            int time = 15000;
            Start(time);
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                                dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
    }it obviously runs the default constructor which then runs the other methods in the class but it doesn't seem to show can anybody help me to find out whats wrong? It seems to be there just before the main application launches but only for a split second. And when i am waiting while the thread is sleeping the area i have defined the Content pane for he cursor goes to the loading icon! I don't know if this makes any sence to you but if you can help me it would be most apreciated.
    Thanks.

    SpearOne wrote:
    Hi Encephalopathic
    why would it work if i put it in it's own application surely it wouldn't be caused by this thread.sleep?? everything after it is in fact put to sleep. In its "own" application, nothing happens after it is displayed.
    if it is the problem then could you please give me some code to add quickly to test??
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    import javax.swing.Timer;
    public class SplashScreen extends JWindow
      private static final String IMAGE_PATH = "src/1.jpg";
      private static final int UP_TIME = 15000;
      public SplashScreen()
        Start();
      public void Start()
        ImageIcon ii = new ImageIcon(IMAGE_PATH);
        JScrollPane jsp = new JScrollPane(new JLabel(ii));
        //JProgressBar Bar = new JProgressBar();
        getContentPane().add(jsp);
        setSize(853, 303);
        centerScreen();
      private void centerScreen()
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int x = (int) ((d.getWidth() - getWidth()) / 2);
        int y = (int) ((d.getHeight() - getHeight()) / 2);
        setLocation(x, (y - 100));
      public static void main(String[] args)
        final JFrame frame = new JFrame("Main Frame");
        frame.setPreferredSize(new Dimension(300, 200));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        final SplashScreen splash = new SplashScreen();
        splash.setVisible(true);
        Timer swingTimer = new Timer(UP_TIME, new ActionListener()
          public void actionPerformed(ActionEvent e)
            splash.dispose();
            frame.setVisible(true);
        swingTimer.setRepeats(false);
        swingTimer.start();
    }

  • Cannot display Chinese Character in ver 10.1.3

    Hello,
    I would like to ask one more question, when i run my program, it contain two jsp pages,
    the first one is to ask the user to input some chinese character, then the second one is to display the input data in the second page. I found out that the second one cannot display the input chinese character, but other chinese character in the second one can be display.
    Some of my code in the second one are as follow:
    String firstName = request.getParameter("firstName");
    &#20013;&#25991; <%=firstName%>
    The result are displayed are displayed as follow:
    &#20013;&#25991; ?T???\!
    It seems to me that the text can display but the variable cannot display, does any one know the reason?
    One of the replies from the JDeveloper forum are as follow:
    I seem to recall there was a bug in the 10.1.3 OC4J with passing parameters on the URL in other languages. You might want to ask on the OC4J forum:
    OC4J
    Regards,
    Alan 20/11/2005

    chulongjiang,
    i solve the problem with your advice, thanks lot!
    Regards,
    Alan 24/11/2005

  • Display chinese character

    I have a java application with read string from IE browser through JNI interface.
    The issue is the String i got, which is "\u963f\u5f1f\u4ed4" can't be display in Chinese directly.
    I do following convetion, it doesn't work.
    byte[] sb=link.getBytes();
    String Zhongwen=new String(sb, "GB2312");
    But if I define a this String in my application, it works.
    String link = "\u963f\u5f1f\u4ed4";
    I bet Java treats first case as a buch of seperate characters since if I build
    a String as "\\u" + "963f", I can't get chinese character.
    So it is looks I can only use the parseInt(..) method on the Integer class and casting the result to a char.
    try
    char p = (char)Integer.parseInt(x, 16);
    System.out.println(p);
    catch(Exception e)
    System.out.println(e);
    Does antbody have another solution?

    The most probable source of error is character encoding conversion...most likely from the IE browser to the Java environment. Do you have a way to find out what encoding is used in the browser? IE will transfer form data back to the server in either UTF-8 or the encoding of the original form.
    Transfer the data from IE correctly, and you will be able to display the characters without further problem.
    John O'Conner

  • Display Chinese Character in SQLPLUS

    Anyone have any idea how to display a chinese character from the database? Is it possible to display from sqlplus.
    null

    It is possible to display Chinese characters in SQL*Plus. The reference manual at http://www.oradoc.com/ora817/server.817/a76966/toc.htm would be a good starting place to learn more.
    - CJ

  • Need help on "Displaying items for Library System"

    Hi folks, i am currently new to this forum and I need help on this problem ASAP.
    I currently doing

    Sorry, I accidentally hit the enter button so i start again.
    I currently doing a online Library system and I hve been assign the task of doing the "search items" use case.
    The situation is like this, my system retrieves 50 items based on the user selection and displaying them on a page.
    The problem is I do not know how to seperate the items cos I don wan to display everything on the page, wat i wan is like displaying first 20 items on the page and when the user click the "next" link, the next 20 items will be display on the same page.
    My teacher ask me to use custom tags(WHICH I NEVER LEARN BEFORE) so
    please give me advise or related links as soon as possible cos I have to hand in the project in two weeks time.

Maybe you are looking for

  • Multiple version of Java on one machine

    Is it possible to have multiple versions of Java co-exist on the same XP Pro machine? Here is our scenario: we have apps that use Java 1.5, but we have one critical app that doesn't support that version yet. It has to use the 1.4 version. Is there a

  • Multiple SOAP fault support in PI?

    Hi Guys, We have a webservice that has multiple SOAP faults as part of the WSDL. Normally a sync WS will have a request, a response and a fault. My question is does PI support multiple faults? If i look at the SI, it lets me add multiple fault messag

  • JNDI Lookup in Servlet  - Design Question

    I will appreciate if someone answers/clarifies my following questions. I am using Tomcat Connection pooling. 1. If I understand correctly- with Connection Pooling - Server will take care of opening the connections with DB So if the Max users allowed

  • Xperia Z1 Firmware build 14.3.A.0.757

    I have the Xperia Z1 Model number C6902, and still cannot get the latest firmware build 14.3.A.0.757 to fix al the problems of 14.3.A.0.681. Can anyone assist??? I am really getting tired of the sound and speaker issues. Will appreciate any comments.

  • No picture colour on ipod touch

    Hi, I have no colour picture on my ipod touch - all i get is a negative picture image(like an old photograph negative image) any ideas how to reslove this issue?