Problem in displaying chinese characters in chinese OS

I have a application that is supposed to run on chinese OS. But i can't seem to make it display in the correct language format, whether its big5 or gb2312.
When saving chinese characters to db, it saves weird characters to the db and retreive the weird characters to be displayed on the web.
Do I need to do any changes to anything ??
Thank you in advance.
current system requirements:
Chinese OS (NT4)
Access DB (English version)
Java / JSP languages
Display big5 or GB2312

Try using varchar

Similar Messages

  • Problems in displaying chinese characters with utf-8 encoding

    Hi,
    I got problem in displaying chinese characters in my web application.
    I am creating a web application supporting both English and Chinese charaters. What I am trying to do is:
    1. storing some chinese characters via a web page (page1) into database.
    2. retrieve the chinese characters via another web page (page2) from the database.
    Once I put the Chinese characters on the webpage (page1 in step #1), it displayes well (the readable chinese characters) before I submit this page (after submit, the data will be stored into the database).
    But when I tried to display the chiese characters via page2 in step#2, I got un-readable characters displayed.
    The running configuration is: Sun Application Server (coming and with the JSC2) and MySQL server 5.0. And I setup the database server with utf8 as character-set.
    It seems like the chinese characters got messed up throught the round-trip (from page1<----via jdbc---->database<----via jdbc------>page2).
    From the database, I found the chinese characters are there. Any helps are appreciated.

    Hi,
    I am trying to insert new record.The record may contain chineese or English data.
    I did same what u specified.
    first I converted to the byte UTF8.again,I converted byte to string using 8859_1.
    the values are not storing chinese characters.
    pls suggest me.
    below is my code.
                                  ascCode = req.getParameter("asccode");
                                  countryCode = req.getParameter("countrycode");
                                  ascName      = req.getParameter("ascname");
                                  address1     = req.getParameter("ascaddress1");
                                  address2 = req.getParameter("ascaddress2");
                                  System.out.println("ASC NAME:"+ascName);
                                  System.out.println("ADDRESS1:"+address1);
                                  System.out.println("ADDRESS2:"+address2);
                                  ascC = ascCode.getBytes("UTF8");
                                  coun = countryCode.getBytes("UTF8");
                                  ascN           = ascName.getBytes("UTF8");
                                  add1 = address1.getBytes("UTF8");
                                  add2          = address2.getBytes("UTF8");
                                  System.out.println("ASC NAME:"+ascN);
                                  System.out.println("ADDRESS1:"+add1);
                                  System.out.println("ADDRESS2:"+add2);
                                  ascCode = new String(ascC,"8859_1");
                                  countryCode= new String(coun,"8859_1");
                                  ascName = new String(ascN,"8859_1");
                                  address1 = new String(add1,"8859_1");
                                  address2 = new String(add2,"8859_1");
                                  System.out.println("ASC NAME:"+ascName);
                                  System.out.println("ADDRESS1:"+address1);
                                  System.out.println("ADDRESS2:"+address2);
    thanks.

  • Problem in displaying Japanese characters on the browser.

    Hi Friends,
    Hope one of you could help me in this!!
    We are using SHIFT_JIS character encoding in our jsps to display Japanese characters.
    <%@ page contentType="text/html; charset=SHIFT_JIS" %>
    Is there any other configuration required on server side to let the Japanese characters being displayed? Because what I am getting on screen is quite annoying. Well something like below.
    ?V?M???????�
    Even though my knowledge in Japs isn't too good :-)) I can understand that these are not Japanese. I believe I am missing something in terms of server side configuration, Can anybody point that out. (Maybe some of the Japanese developers in here).
    This could not be a client side issue, since from the same machine I can access other Japanese sites and they display properly. Let me know if anybody can help.
    I am running these in WAS 5.0
    Thanks,
    King

    Your text in the JSP should be UTF-8 nevertheless - as would be ideal
    for internationalization. Java comes with a command-line conversion tool
    native2ascii which is bidirectional.
    As non-Japanese I am not certain whether "SJIS" might not be better (there
    are some name variations in java).
    The HTML generation will translate these characters to SHIFT_JIS in your case.
    Where the target encoding cannot handle the intended character it receives a
    question mark - hat you saw.
    Furthermore you need a proper font in HTML and under Windows (window title).
    Your webserver should have east-asian support. Though Japanese (and English)
    are standard, I, as non-japanese am not certain about SHIFT_JIS.
    Also there is some freedom in choice for a japanese encoding.

  • Problem in displaying Japanese characters in SAPScripts

    Hi All,
    I am facing a strange problem in one of my SAPScripts. I have one script in both English and Japanese languages. The scripts are already existing. I had to do some minor changes in a logo window. I did them and i did not do any other changes in any of the windows.
    When the output wa s seen for the script in the Japanese version, it was looking ok displaying all hte Japanese characters in various windows. Now, during testing , in the same server, the Japanese characteres are not shown. Instead , some ' #'(hash) symb ols are getting displayed.
    How could it happen? Did any body face such problem? If so, can anybody plz help me out with the solution?
    What shud i do to get back the Japanese characters in my script again?
    Regards,
    Priya

    Priya.
    this is not an ABAP problem ask your BASIS team to set printer cofing from SPAD.dont worry its not an ABAP issue at all.
    sometime printer doesnt support special char so it need to be setting with printer.
    Amit.

  • Having a problem in displaying Japanese characters in JSP

    Hi, Could someone pls help me out with this...
    I'm trying to implement my application(in Java) in English, French and Japanese languages. For this purpose, I have used ResourceBundle class. I have no problem in implementing English and French versions as they are all in Unicode.
    For Japanese version, I have used a tool called NJStar Editor to create a properties file in Japanese and am saving the file with format:"Shift-JIS Text File".
    Then I run native2Ascii <fileCreated><asciiConvertedFile>.
    I see that the asciiConvertedFile has converted text such as "wfm_wla_filter=\u30d5\u30a3\u30eb\u30bf\u30fc".
    I'm calling this variable from a JSP using <%=bundle.getString("wfm_wla_filter")%>. In the JSP i include <%@ page contentType="text/html; charset=Shift_JIS" %> to take care of the Japanese content.
    The final result that is displayed in the browser is not Japanese. It is either some garbage that is not understandable or it is just "??????".
    Could you pls tell me where I might have gone wrong in the any of the procedures that I have mentioned above.
    Thanks in advance
    Satish

    Hi,
    I think you need to look at this as a two-step problem.
    First, you need to get the external characters from a file into the JVM. The java.util.Properties object doesn't know how to handle Shift-JIS, UTF-8, etc. According to the JavaDoc, Properties.load only understands ISO 8859-1. So, the native2ascii tool converts your Shift_JIS files into something that Properties can load. During the Properties.load process, the bytes from the properties file get converted into 2-byte Unicode characters, the only format the JVM deals with.
    Second, you need send Shift-JIS bytes back to your browser. So, you need to convert Java Strings into a Shift-JIS encoded byte stream. Here's an example of how to send Shift-JIS bytes to the browser using basic Java objects:
    <%@ page contentType="text/html; charset=Shift-JIS" %>
    <%
    ResourceBundle rb =
    ResourceBundle.getBundle("MyResources", Locale.JAPAN);
    String someMessage = rb.getString("someMessageKey");
    writer.print(someMessage);
    %>
    Note that since you declared the charset as Shift-JIS, the JSP writer should send the bytes in someMessage in the response stream as Shift_JIS encoded. Under the covers, the JSP container should interpret your contentType declaration and embed a new OutputStreamWriter(out, "Shift-JIS") into the JSP Writer. In the old days with Servlets, we had to work with OutputStreams directly using OutputStreamWriter. (Note: might be SJIS vs. Shift-JIS depending on your JDK).
    Lastly, I strongly recommend that you use the JSTL i18n (prefix fmt) tags for developing i18n/l10n support into your Web application vs. re-inventing the wheel.
    Best regards,
    Timothy Potter

  • Problem while displaying UTF8 characters.

    Hi,
    I have a panel grid which is binding through one method.I generated two label component inside that panelgrid.
    I created HtmlOutputLabel.I'm seeting value setLabel() method.My problem is I'm setting UTF8 charecters inside.
    Example setLabel("G�te"); While displaying in browser this UTF8 character is not displaying properly.This setLabel method is getting one object as argument.I dont know how they r doing typecasing internally.
    CAn anyone tell what is the problem.How to rectify it?
    Thanks,
    Bosky

    response.setCharacterEncoding("utf-8");This makes sure that the response characters will be in utf-8.
    Also makes sure that you data that is being send is encoded as utf-8. Java stores data in utf-8 by default.

  • 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

  • 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 : &#20197;&#19979;5&#31181;&#26631;&#31614;&#30340;&#34920;&#38754;&#35201;&#27714;&#21015;&#26679;
    Request=&#26465;&#30721;&#31163;&#36793;&#26694;
    Tablehead=&#36879;&#26126;&#26631;&#31614;
    Note1= &#36879;&#26126;&#26631;&#31614;
    Note2= &#36879;&#26126;&#26631;&#31614;
    NoteA= &#21360;&#21830;&#26631;&#22270;
    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...

  • Display Chinese in JEditorPane

    Hi,
    I've a problem in displaying Chinese characters in Applet using JEditorPane. The java codes like this:
    JEditorPane editorPane = new JEditorPane();
    editorPane.setEditable(false);
    editorPane.setContentType("text/html; charset=big5");
    try {
    URL fileURL = getURL("testfile.html"); // get URL from getCodeBase()
    displayURL(fileURL, editorPane);
    } catch (Exception e) {}
    private void displayURL(URL url, JEditorPane editorPane) {
    try {
    editorPane.setPage(url);
    } catch (IOException e) {
    System.err.println("Attempted to read a bad URL: " + url);
    If I run these codes in JFrame, the Chinese characters can display correctly. But once I convert it to JApplet, all Chinese characters are changed to some squares or some special characters. Should I have something missing from my coding or I wrote something wrong in my code? Please help. Thanks.

    Hi,
    just a guess, i think u can use setContentType to set the MIME type
    Ashish

  • Displaying Chinese Lyrics

    I have a problem on displaying Chinese Lyrics on my iPOD Nano. All chinese turns into strange character.
    The lyrics can be displayed in iTunes6.0 properly on both windows (xp) and mac mini. I have try convert the mp3 tag to v2.4, but it didn't help.
    Any help is appreciated.

    Before uploading to Nano, I have the fear of wrong display of Chinese characters. But to my surprise, all Chinese characters can display properly and even Traditional (Big5) Chinese characters and GB Simplified Chinese characters mixed on the same screen appear properly on the Lyrics window of my Nano.
    It's fantastic even WinXP machines require proper settings to display different Chinese characters sets properly. I just choose "Chinese" on the Nano's language setting and it turns out OK. But it takes more steps for me to get the Chinese characters display correctly in iTunes5 on my WinXP.

  • Problem in displaying Arabic Character in Paper Layout

    Hi
    I am facing problem while displaying arabic characters.
    In Web layout i am able to get it by changing the character set to ISO-8259-6.
    I had changed the NLS parameters in registry as suggested in the help. But still i am unable to get. Please can anyone send the brief steps to fix this.
    Thanks in Advance
    Ranganath

    Ranganath,
    That means subsetting is not happening. If subsetting had been successful, you would have seen in "Font properties", the type of font as Type 3 and name of the font as Fx, where x could be 0,1 etc.
    The things I suspect are: 1) your report definition has some other font associated which is not Arial.
    2) You are not specifying correctly the subset information in uifont.ali.
    Open your report in builder and check again, what font you are using to display the data. Open the report in paper layout and click on the data field and check in the font box, the font name that is displayed.
    In your uifont.ali, make sure that under [PDF:Subset] section, you specify (if you are using Arial font)
    Arial = "arial.ttf".
    If you have any other entry regarding Arial in other sections of uifont.ali, comment those for the time being by putting # before those.
    Let me know the font properties after these steps.

  • Display special characters in Workbook / BEx-Query

    Hello,
    Actually we have the problem to display special characters of the customer number-descriptions in workbooks / BEx-Queries. In the text-table of 0CUST_SALES (/BI0/TCUST_SALES) we can see the special characters in the descriptions for example for Polish names (here: OBI WROCŁAW). But in the reports the special character "Ł" is replaced by "#".
    The InfoObjekt is marked as non-language dependent.
    In the backend we are already working with BI 7.0. At the front-end-side we are still using the 3.x-toolkit.
    Does anybody have an idea?
    Kind regards
    Daniel

    I had this problem with Thai characters.
    You need to have a Windows configured with polish chars to see them, I fear.

  • Problems displaying Chinese characters

    Safari cannot display Chinese characters from time to time. It would work in one session but it failed to display Chinese characters in another session even with the same settings in the Preferences. Can anyone give me some advice please?

    Safari cannot display Chinese characters from time to
    time. It would work in one session but it failed to
    display Chinese characters in another session even
    with the same settings in the Preferences. Can
    anyone give me some advice please?
    The preferences don't necessarily matter. You most likely need to adjust the encoding in View > Text Encoding. If you will provide the url of an example page where you have a problem I can probably offer more specific help.

  • 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

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

Maybe you are looking for

  • [Endeca 3.1.1 + ATG 10.1.2] @FileNotFound error while requesting a page

    When I am requesting for a Endeca page (say "dil"), I am getting the following error: 18:40:58,306 INFO [AssemblerPipelineServlet] DEBUG Allowed mime type null for assembly of URI /crs/dil 18:40:58,306 INFO [AssemblerTools] DEBUG Assembling content f

  • After creating Peopletools 8.52, FSCM 9.0 Demo PSSTATUS table shows 8.48

    Hi I am building the new demo environment for Finance. PeopleTools 8.52 FSCM 9.0 on unicode database with Demo option. But running the datamover scripts, PSSTATUS table still shows 8.48. Any Ideas ? Thanks, Sarathy K

  • Need to send mail from new infotype

    Hi, i must send email notification when i new PA specific infotype is created/changed. Finally, i don't think worflow is the best way... but i don't know where i must implemented my code, i've tested this idea by modifying the PAI but it don't work,

  • Web Dynpro Layout - Shows The page cannot be displayed

    Hi I am getting "The page cannot be displayed" in the Layout Tab of Web Dynpro - View Component. Can someone help me to fix this issue. Regards Venkat

  • Multiple facts

    Hi All,      I have one doubt, I have F1 fact connect  D1&D2 dimensions.And F2 fact connect with D3 dimensions.In report we need F1 D1 F2 & D3 tables only.How can we do .Give reply anybody..........