Display chinese character problem

i have a page which have some text box for user input the text and then do searching, but i need retain the text which user input previsous, when the user input the chinese text and click submit button then the result show correctly, but the input box cannot show the chinese word after submit. i use the utf-8 encoding, and if i use request.setCharactEncoding("UTF-8"), that can show the chinese word in text box after submit, but cannot search the result. how to fix it, thanks!

check reply #6 of this thread:
http://forum.java.sun.com/thread.jsp?forum=45&thread=515202
There is a test JSP code. This works for me, so see what you're doing different.

Similar Messages

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

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

  • 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

  • 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

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

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

  • 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

  • Get Chinese Character Problem

    Hi,
    i'm facing a problem when i try to get the Chinese word from database. It should display "�W��������" rather then "?????".
    i tried to change the page encoding from "UTF-8" to "GB2312" but it still doesn't work.
    Anyone have any idea on this?
    Thanks.
    null

    Hi,
    I have no problem with getting the chinese character in my localPC with the following code.
    <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    But when i upload it to linux server and access it in my local PC, i found the same problem occured. So, i added
    request.setCharacterEncoding("UTF-8");
    As i need to pass this value to another page, so i encode it by using URLEncode like below before go to the other page :-
    artistName = java.net.URLEncoder.encode(artistName,"UTF-8");
    Anyone can help me on this?
    Thanks
    null

  • 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

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

  • Problems displaying Chinese character songs.

    Hi,
    I just transfered my library from my old computer to Windows 7 and the songs with foreign characters such as Chinese display correct when I browse through my library. However, it converts to random characters after I play the song one time.
    Is there a fix to this problem?
    Thanks.

    If you see squares, that means you are using a font that can't render those characters. Choose a font that can.

  • Chinese Character  Problem in Essbase Integration Service & Oracle9i

    I installed oracle9i on windows2000,which character set is SIMPLIFIED CHINESE_CHINA.zhs16cgb231280. And I installed Essbase Integration Service 6.5.4 on HP-UNIX server. I designed an OLAP Model in Integration Services Console and I defined some dimensions name using chinese characters. When I saved the model, the chinese characters I inputed is saved as some question marks(?) in the tables in oracle 9i. After I loaded the dimension data which include the chinese charaters, the dimension data which is chinese characters also displayed question marks in the EIS console. I have added the variable NLS_LANG="SIMPLIFIED CHINESE_CHINA.zhs16cgb231280" in the .profile, but it did not work either. How can I solve this problem? Can I do any configuration on EIS files to solve this problem? Would you please help me? Thank you very much!

    Check for SETLOCALE in EIS<BR>SETLOCALE <LANGUAGE_TERRITORY.CODEPAGE@SORT><BR>SETLOCALE .UTF8@default<BR>this might help you.

Maybe you are looking for

  • Uninstalling Secondary Site Server through SW Delivery fails

    We have migrated to SCCM2012 and now need to uninstall our SCCM 2007 Secondary Siteserver. Since we have 300 Secondary Site Server in the Hirarchy, the uninstall of the software must be distributed. We have to create a task sequence, in which the fol

  • Home Share Question

    I have Home Share set up on my laptop as well as my husband's laptop and I have transferred songs in the past from his computer to mine. Currently when I launch Itunes on both computers, Home Share is active and my computer 'sees' the list of his son

  • GetCalls is good, but...

    Hi, Iam using code below to invoke a service dynamically. Calling Service method getCalls should preconfigure all settings according to the documentation. This works fine for all settings but the SoapAction. To get this to work I have to hardcode the

  • Synchronize RDBMS source view with ODI Interface

    Hello ODI expert(s), I'm new to ODI & hence experimenting. I'm trying to load metadata from a SQL Server view to Oracle's Hyperion Planning. My question is w.r.t source. I've 6 columns in my source view. All 6 were mapped to the appropriate target fi

  • Cloning the main drive

    I'm thinking of replacing the 250gb drive that game with my mac pro with at least a 500gb drive. What's the best way to duplicate the main drive onto the new disk. I was thinking of taking the new drive and placing it in bay 4. (which is currently op