Chinese Characters in JSP

Hi guys,
currently we are running our portal in English. Our customers also want to have Chinese texts replaced with English texts. How this can be done in JSP? Is there any software available to do entire translation?
With regards,
Amin

chinese character is supported by latest browsers. Chinese Star is 1 of the input software used. u may try others.

Similar Messages

  • Display Chinese characters on JSP under WebLogic 6.1

    We've recently migrated from WebLogic 5.1 to 6.1 and we found that all those
    Chinese JSP pages cannot display properly under Solaris, but it works on
    some Windows 2000 machines (but everything work under 5.1).
    However we haven't made any special changes to any configuration in all
    these machines. Why some of them work and some of them doesn't ? Those W2K
    machines work are running English version of Windows 2000, but with Chinese
    character sets installed.
    Our Chinese JSP pages use big5 character encoding instead of unicode.
    I've read a number of messages in this newsgroup but I'm still very
    confusing on how to fix the problem ...

    Hi,
    I have the same problem here. I am using weblogic 6.1 on W2k server. I save
    prpblem from those static contents in the jsp file, but those data in chinese
    from oracle database is working fine. I create a simple jsp file just with a simple
    text "hello world" in chinese, I save one as a html and one as a jsp. When I run
    this two under weblogic 6.1, the html file display correctly but the jsp is not.
    I try "UTF-8", "GB2312" and other charsets but all not working with jsp files.
    Please help.... Thank you.
    yanglin
    "Nohmenn BABAI" <[email protected]> wrote:
    >
    >
    Dear Ricky,
    Could you please check the following :
    If you are on Sun Solaris systems please check the LC values of your
    =
    environment as shown in example below.
    This is the cause of many troubles due to the fact that the JVM =
    considers these parameters to encode.
    (example given for Italian display, so I guess for you this will be =
    Big5)
    On Solaris 7 the right settings are=20
    LC_COLLATE=3Dit.ISO8859-15
    LC_CTYPE=3Dit.ISO8859-15
    LC_MESSAGES=3Dit
    LC_MONETARY=3Dit.ISO8859-15
    LC_NUMERIC=3Dit.ISO8859-15
    LC_TIME=3Dit.ISO8859-15=20
    on Solaris 8=20
    LC_COLLATE=3Dit_IT.ISO8859-1
    LC_CTYPE=3Dit_IT.ISO8859-1
    LC_MESSAGES=3Dit
    LC_MOLC_COLLATE=3Dit.ISO8859-15
    LC_NUMERIC=3Dit_IT.ISO8859-1
    LC_TIME=3Dit_IT.ISO8859-1
    Also another point to check is=20
    In All Weblogic Releases :
    You can add the flag -Dfile.encoding=3DUTF8 in the startup line to force
    =
    default encoding in the JVM
    In your Webloigc 5.1 property file
    # WEBLOGIC CHARACTERS PROPERTIES
    weblogic.httpd.inputCharset./russian/*=3DISO-8859-5
    weblogic.httpd.inputCharset./utf/*=3DUTF-8
    weblogic.httpd.inputCharset./french/*=3DISO-8859-1
    weblogic.httpd.inputCharset./japan*=3DShift_JIS
    # FOR ENCODING THE WHOLE SITE IN UTF-8, UNCOMMENT THE FOLLOWING LINE
    #weblogic.httpd.inputCharset./*=3DUTF-8
    In your weblogic.xml's Weblogic 6.1 and later :
    <weblogic-web-app>=20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/japan*</resource-path>=20
    <java-charset-name>Shift_JIS</java-charset-name>=20
    </input-charset>=20
    </charset-params>
    =20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/russian*</resource-path>=20
    <java-charset-name>ISO-8859-5</java-charset-name>=20
    </input-charset>=20
    </charset-params>=20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/french*</resource-path>=20
    <java-charset-name>ISO-8859-1</java-charset-name>=20
    </input-charset>=20
    </charset-params>
    <charset-params>=20
    <input-charset>=20
    <resource-path>/UTF-8*</resource-path>=20
    <java-charset-name>UTF-8</java-charset-name>=20
    </input-charset>=20
    </charset-params> =20
    </weblogic-web-app>
    As you may have noted, the ressouce-path is starting from root, and =
    after you insert the directory where you want to define de encoding.
    This will influence the JVM when performing a compilation (please clean
    =
    the temp directories from any compiled jsps before re-starting your =
    WLS).
    Please reply in the forum is you still face the problem after all these
    =
    modifications.
    Best regards
    Nohmenn BABAI
    BEA EMEA Technical Support Engineer
    "Ricky Wong" <[email protected]> a =E9crit dans le message de news:
    =
    [email protected]...
    We've recently migrated from WebLogic 5.1 to 6.1 and we found thatall =
    those
    Chinese JSP pages cannot display properly under Solaris, but it works=
    on
    some Windows 2000 machines (but everything work under 5.1).
    =20
    However we haven't made any special changes to any configuration in=
    all
    these machines. Why some of them work and some of them doesn't ? Those=
    W2K
    machines work are running English version of Windows 2000, but with=
    Chinese
    character sets installed.
    =20
    Our Chinese JSP pages use big5 character encoding instead of unicode.
    =20
    I've read a number of messages in this newsgroup but I'm still very
    confusing on how to fix the problem ...
    =20
    =20<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY>
    <DIV><FONT face=3DArial size=3D2>Dear Ricky,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Could you please check the following
    =
    :</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>If you are on Sun Solaris systems =
    please check the=20
    <STRONG>LC</STRONG> values of your environment as shown in example=20
    below.<BR>This is the cause of many troubles due to the fact that the
    =
    JVM=20
    considers these parameters to encode.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>(example given for Italian display,
    so =
    I guess for=20
    you this will be <STRONG>Big5</STRONG>)</FONT></DIV>
    <DIV><BR><FONT face=3DArial size=3D2><FONT color=3D#ff0000><STRONG>On
    =
    Solaris 7 the=20
    right settings are</STRONG>=20
    <BR></FONT>LC_COLLATE=3Dit.ISO8859-15<BR>LC_CTYPE=3Dit.ISO8859-15<BR>LC_M=
    ESSAGES=3Dit<BR>LC_MONETARY=3Dit.ISO8859-15<BR>LC_NUMERIC=3Dit.ISO8859-15=
    <BR>LC_TIME=3Dit.ISO8859-15=20
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><FONT color=3D#ff0000><STRONG>on =
    Solaris 8</STRONG>=20
    <BR></FONT>LC_COLLATE=3Dit_IT.ISO8859-1<BR>LC_CTYPE=3Dit_IT.ISO8859-1<BR>=
    LC_MESSAGES=3Dit<BR>LC_MOLC_COLLATE=3Dit.ISO8859-15<BR>LC_NUMERIC=3Dit_IT=
    ..ISO8859-1<BR>LC_TIME=3Dit_IT.ISO8859-1</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><STRONG>Also another point to check
    =
    is</STRONG>=20
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>In All Weblogic Releases :<BR>You can
    =
    add the flag=20
    -Dfile.encoding=3DUTF8 in the startup line to force default encoding
    in =
    the=20
    JVM</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2><STRONG>In your Webloigc 5.1 property=20
    file</STRONG></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2># # # # # # # # # # # # # # # # # #
    # # =
    # # # # # #=20
    # # # # # # # #<BR># WEBLOGIC CHARACTERS PROPERTIES<BR>#=20
    ------------------------------------------------<BR>weblogic.httpd.inputC=
    harset./russian/*=3DISO-8859-5<BR>weblogic.httpd.inputCharset./utf/*=3DUT=
    F-8<BR>weblogic.httpd.inputCharset./french/*=3DISO-8859-1<BR>weblogic.htt=
    pd.inputCharset./japan*=3DShift_JIS<BR>#=20
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #<BR>#
    =
    FOR=20
    ENCODING THE WHOLE SITE IN UTF-8, UNCOMMENT THE FOLLOWING LINE<BR>#=20
    ------------------------------------------------<BR>#weblogic.httpd.input=
    Charset./*=3DUTF-8</FONT></DIV>
    <DIV><BR><FONT face=3DArial size=3D2><STRONG>In your weblogic.xml's =
    Weblogic 6.1 and=20
    later :</STRONG></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><weblogic-web-app> </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/japan*</resource-path>=20
    <BR><java-charset-name>Shift_JIS</java-charset-name>=20
    <BR></input-charset>=20
    <BR></charset-params><BR> <BR><charset-params>=20
    <BR><input-charset>=20
    <BR><resource-path>/russian*</resource-path>=20
    <BR><java-charset-name>ISO-8859-5</java-charset-name>=20
    <BR></input-charset> <BR></charset-params> </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/french*</resource-path>=20
    <BR><java-charset-name>ISO-8859-1</java-charset-name>=20
    <BR></input-charset> <BR></charset-params></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/UTF-8*</resource-path>=20
    <BR><java-charset-name>UTF-8</java-charset-name>=20
    <BR></input-charset> <BR></charset-params>  =
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></weblogic-web-app></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><EM>As you may have noted, the =
    ressouce-path is=20
    starting from root, and after you insert the directory where you want
    to =
    define=20
    de encoding.</EM></FONT></DIV>
    <DIV><EM><FONT face=3DArial size=3D2></FONT></EM> </DIV>
    <DIV><EM><FONT face=3DArial size=3D2></FONT></EM> </DIV>
    <DIV><FONT face=3DArial size=3D2>This will influence the JVM when =
    performing a=20
    compilation (please clean the temp directories from any compiled jsps
    =
    before=20
    re-starting your WLS).</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Please reply in the forum is you still
    =
    face the=20
    problem after all these modifications.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Best regards</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Nohmenn BABAI</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>BEA EMEA Technical Support =
    Engineer</FONT></DIV>
    <DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>"Ricky Wong" <</FONT><A=20
    href=3D"mailto:[email protected]"><FONT face=3DArial=20
    size=3D2>[email protected]</FONT></A><FONT face=3DArial =
    size=3D2>> a =E9crit dans=20
    le message de news: </FONT><A =
    href=3D"mailto:[email protected]"><FONT=20
    face=3DArial size=3D2>[email protected]</FONT></A><FONT =
    face=3DArial=20
    size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> We've recently
    =
    migrated from=20
    WebLogic 5.1 to 6.1 and we found that all those<BR>> Chinese JSP =
    pages cannot=20
    display properly under Solaris, but it works on<BR>> some Windows
    =
    2000=20
    machines (but everything work under 5.1).<BR>> <BR>> However we
    =
    haven't=20
    made any special changes to any configuration in all<BR>> these =
    machines. Why=20
    some of them work and some of them doesn't ? Those W2K<BR>> machines
    =
    work are=20
    running English version of Windows 2000, but with Chinese<BR>> =
    character sets=20
    installed.<BR>> <BR>> Our Chinese JSP pages use big5 character
    =
    encoding=20
    instead of unicode.<BR>> <BR>> I've read a number of messages in
    =
    this=20
    newsgroup but I'm still very<BR>> confusing on how to fix the problem
    =
    ....<BR>> <BR>> </FONT></BODY></HTML>

  • Typing chinese characters on 9iJeveloper JSP

    Hi,
    I have a jsp with UTF-8 encoding, and my 9iJdeveloper project complier setting
    is marked as UTF-8 as well. But i need to display chinese characters on the jsp.
    I can type in the characters but when building project, 9iJdeveloper display java
    malformed error. Does Anyone meet this problem before?
    rgds,
    joe

    I'm referring the Keyboard dock, not the built-in keyboard on iPad.
    You still need to use the Settings to select the Chinese keyboard layout. There is a separate section for hardware keyboards, where you can further choose us, french, german (depending on whether your physical keyboard is qwerty, azerty, or qwertz).
    Are you having some problem after doing that? Are you familiar with how normal pinyin input works?

  • Pls help.JSP: I could not store Chinese characters into files.

    Hi experts,
    I have this problem of cant store chinese characters into files(eg. .txt and .properties). I am adding
    these chinese text through a JSP website form....After i key in chinese characters in the textboxes
    in the website and sumbit the results, my chinese characters turned into ASCII or rather garbage in
    the files.
    Is there any way i can get the exact chinese characters i entered in the webite into the files?
    Need urgent assistance here.
    Thanks
    <%@ page contentType="text/html; charset=big5" %>
    <html>
    <head>
    <title>Confirmation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </head>
    <%@ page language="java"%>
    <%@ page import="java.io.*"%>
    <%@ page import="java.lang.Integer.*"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="java.sql.ResultSet.*"%>
    <%@ page import="javax.servlet.*"%>
    <%@ page import="javax.servlet.http.*"%>
    <%@ page import="java.text.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="java.net.URL"%>
    <%
    //getting attributes from previous page form
    //At this point, chinese characters r retrieved
    //Ascii/garbage displayed for text when retrieved from previous page.
    String gameName=request.getParameter("name");
    String encode=request.getParameter("encode");
    String gameType=request.getParameter("type");
    String info=request.getParameter("description");
    int check=0;
    int nextGameID;
    String temp="";
    String langCode="";
    //establish connection
    Connection con = null;
    try {
    Class.forName("org.postgresql.Driver");
    con = DriverManager.getConnection("jdbc:postgresql://172.20.134.110:5432/smsINTFET" , "postgres",
    "postgres");
    catch(ClassNotFoundException e) {
    out.println("Could not load the driver: "+e.getMessage());
    catch(SQLException e) {
    out.println("SQLException caught in relax db: "+ e.getMessage());
    Statement stmt = null;
    ResultSet rs = null;
    ResultSet ps = null;
    String strSQL = "";
    String strSQL2 = "";
    String tempCat = "";
    strSQL="SELECT gamename FROM cp_games order by gameid;";
    try {
    stmt = con.createStatement();
    rs = stmt.executeQuery(strSQL);
    stmt.close();
    catch(SQLException e) {
    out.println("SQLException caught: "+ e.getMessage());
    while(rs.next())
    check=0;
    temp=rs.getString("gamename");
    if(temp.equalsIgnoreCase(gameName))
    // there is similar record in database
    check=1;
    break;
    else
    check=0;
    if(check==0)
    %>
    <body background="button/bkgd.jpg" bgproperties="fixed">
    <p><b><font size="30pts" face="Monotype Corsiva">Confirmation</font></b></p>
    <HR style="WIDTH: 500px; COLOR: blue; HEIGHT: 3px">
    The following information has been added.
    <table width="75%" border="0" cellspacing="0" cellpadding="2">
    <%
    String strCat="";
    strCat="INSERT INTO cp_games(gamename,description,encode) values('"+gameName+"','"+info+"','"+encode+"');";
    stmt = con.createStatement();
    stmt.executeUpdate(strCat);
    System.out.println("Successful inserted category");
    stmt.close();
    //setting language
    if(encode.equals("ascii"))
    langCode = "US";
    if(encode.equals("ms950"))
    langCode = "TW";
    if(encode.equals("ms936"))
    langCode = "CN";
    strSQL2="SELECT gameid FROM cp_games where gamename = '"+gameName+"';";
    try {
    stmt = con.createStatement();
    ps = stmt.executeQuery(strSQL2);
    stmt.close();
    catch(SQLException e) {
    out.println("SQLException caught: "+ e.getMessage());
    ps.next();
    nextGameID=ps.getInt("gameid");
    out.println("<B>The game number : </B>" + nextGameID);
    %>
    <tr>
    <td><B>Game added: </B><%=gameName%>
    </td>
    </tr>
    </table>
    <%
    String newFile="G:\\home\\smsGamesINTV2\\colorGame\\propertiesFiles\\FET\\CP_Game"+nextGameID+"_"+encode+"_"+langCode+".properties";
    try
    {               //begin file
    PrintWriter outFile=null;
    //create a new file and write the initial settings to file
    outFile=new PrintWriter(new FileOutputStream(newFile,true));
    outFile.println("game_intro="+nextGameID+")"+gameName+" - "+info);
    outFile.println("");
    outFile.println("game_title="+gameName);
    outFile.println("");
    outFile.println("game_type="+gameType);
    outFile.println("");
    outFile.println("qns_no=0");
    outFile.println("");
    outFile.println("ana_no=0");
    outFile.close();
    }//end file
    catch(IOException e)
    out.println("File Create Error");
    else // no match found
    out.println("Game,"+temp+ " already added");
    %>
    </body>
    </html>

    try to add this code under this line:
    <%@ page contentType="text/html; charset=big5" %>
    <% response.setContentType("text/html; charset=big5"); %>
    I have faced the problem like yours and it works fine for me. Try and see.

  • Displaying chinese characters in browser

    Dear sirs,
    I am having the following issue in chinese internationalization.when i stored the JSP form parameters(typed in chinese) in database,it stored some kind of junk characters ....and when i displayed ,they showed like SMALL SMALL tables.... in my browser.
    Our project is java based web application.
    Java-1.5
    Mysql-5.0.24
    tomcat-5.5
    JSP-1.2
    servlet-2.0
    browser-mozilla firebox
    I set in my all JSP pages,
    ----->1.<%@ page contentType="text/html;charset="UTF-8" pageEncoding="UTF-8"%>
    ----->2.<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    in my JAVA files,i added,
    ----->String encode=ServletContext.getInitParameter("javaEncoding");
    ----->request.setCharacterEncoding(encode); (it gets encoding UTF-8 from web.xml file)
    In my MYSQL,i set...
    ----->mysql --default-character-set=utf8 -username -password -database
    so,i changed client,connection,results,system charactersets " utf8" and connection collation is "utf8".
    In my DATABASE connection String...i added,
    ------>useUnicode=true&characterEncoding=UTF-8
    In my TOMCAT web.xml file..i added these lines as i am using POST method for form.
    <context-param>
    <param-name>javaEncoding<param-name>
    <param-value>UTF-8<param-value>
    <context-param>
    still .i am unable to display chinese characters in my browser.
    but.when i am using getBytes() for all form parameters in JAVA file....i m able to store chinese in db and dispay in browser ....
    String param;
    ---->String param=newString(param.getBytes("ISO8859-1"),"UTF-8");
    Could anyone tell me another method for displaying chinese except this getBytes()..
    please help me out. i am trying to find out an alternative server-independent method for past two weeks.
    Advance thanks for reading and help.
    mullaimaran.

    Hi one_dane &Mr.Clap,
    Thank you for your help.
    At last i displayed chinese characters with out using getBytes() and web.xml configuration.
    My settings for displaying chinese....
    JSP :
    1<%@ page contentType="text/html;charset="UTF-8" pageEncoding="UTF-8"%>2.<HEAD>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </HEAD>JAVA(Servlet):
    request.setCharacterEncoding("UTF-8");MYSQL:
    Mysql connection String...i added,
    ----> useUnicode=true&characterEncoding=UTF-8i m using linux terminal for mysql login.
    bash]$  mysql --default-character-set=utf8 -username -password -database nameSo, i changed these settiings in database
    mysql> show variables like '%char%';
    +--------------------------+----------------------------+
    | Variable_name | Value |
    +--------------------------+----------------------------+
    | character_set_client | utf8 |
    | character_set_connection | utf8 |
    | character_set_database | utf8 |
    | character_set_filesystem | binary |
    | character_set_results | utf8 |
    | character_set_server | utf8 |
    | character_set_system | utf8 |
    | character_sets_dir | /usr/share/mysql/charsets/ |
    +--------------------------+----------------------------+and set collation....
    mysql> show variables like '%col%';
    +---------------------------+-------------------+
    | Variable_name | Value |
    +---------------------------+-------------------+
    | collation_connection | utf8_general_ci |
    | collation_database | utf8_general_ci |
    | collation_server | utf8_general_ci |Once again thank you....for help.Keep your assistance in this forum.
    mullaimaran.

  • Who knows how to read the Chinese Characters from JDBC?

    I wrote two files. One is a jsp file, the other is java file. But in the jsp file it cannot print the Chinese characters, only can print the English characters. I have changed the Character Coding of the browser, but it has no effects. However, the java file works much fine. It can print the both English and Chinese characters.
    This is a part of my codes.
    String query="SELECT * FROM MyDB.dbo.BookList WHERE bookname like \'Java%\'";
    ResultSet rs=sm.executeQuery(query);
    rs.next();
    out.println(rs.getString(1));
    MyDB is a database in the SQL server.

    Hi,
    Did you try setting the contentType/charset of the JSP page? The default is latin, I think.
    <%@ page ... contentType="text/html; charset=character_set" ... %>
    Maybe this helps? At least it could give you a start of where to look...
    Best,
    Guy
    http://www.atomikos.com - JTA transactions

  • 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

  • Store&read chinese characters in MS SQL server 2000 using Java

    Hi,
    I have a problem to store Chinese characters in MS SQL Server 2000, storing question marks(??????) instead of Chinese characters
    I am using JSF framework, SUN APPLICATION Server 9.1 , MS SQL Server 2000 server and Microsoft data source driver class (com.microsoft.sqlserver.jdbc.SQLServerDataSource) to connect db.
    I have one solution:
    IN JSP:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    and
    In database column type should “nvarchar” in place of varchar
    while inserting or updating the same need to add ‘N’ prefix with the value like insert into client(Name, Id ….) values (N+)
    the above is working fine but the problem is here i have already defined database with 100s of tables I cant change database tables as well as queries
    Thanks,
    Sathi

    I don't know any betterer option, than to copy the database tabels redefining the Chinese data fields as nvarchar.
    To be frank I had also problems writing to a html file Chinese text stored in MS SQLServer 2000 nvarchar fields.
    The following worked:'
         public String getEncodedData(ResultSet resultSet, int columnIndex, String charset)
         throws SQLException
              //final String methodName = "getEncodedData";
              InputStream binaryStream =resultSet.getBinaryStream(columnIndex);
              String readStringFromStream=readStringFromStream(binaryStream, charset);//UTF_16LE);
              return readStringFromStream;
         public String readStringFromStream(InputStream inputStream, String charset) {
              final String methodName = "readStringFromStream";
              StringBuffer buffer = new StringBuffer();
              try {
                   int ch;
                   InputStreamReader isr = new InputStreamReader(inputStream, charset);
                   Reader in = new BufferedReader(isr);
                   while ((ch = in.read()) > -1) {
                        buffer.append((char)ch);
                   in.close();
                   return buffer.toString();
              } catch (IOException exception) {
                   Log.printError(this,methodName, exception);
                   return null;
         }And writing it to file:
         public void writeEncodedStringToFile(String text, String filePath, String charset, boolean append){
              final String methodName = "writeEncodedStringToFile";
              OutputStreamWriter writer= null;
              try {
                   FileOutputStream fileOutputStream = new FileOutputStream(filePath, append);
                   writer = new OutputStreamWriter(fileOutputStream, charset);
                   writer.write(text);
              } catch (IOException exception) {
                   Log.printError(this,methodName, exception);
              }finally{
                   try {
                        writer.close();
                   } catch (IOException exception) {
                        Log.printError(this,methodName, exception);
         }Edited by: astlanda on Feb 10, 2009 11:13 PM
    Edited by: astlanda on Feb 10, 2009 11:21 PM

  • Traditional Chinese Characters

    My Blackberry Style will not show traditional Chinese characters.  They just appear as black squares.   Can I fix this?

    Hi and Welcome to the Community!
    It all depends on the OS that you are running on your BB...there are different versions for different languages to use. Start here:
    KB05305Localization support for BlackBerry smartphones
    You will need to obtain and install the proper OS, one that contains the language(s) you desire. 
    To install, the simplest way is to, on a PC (you cannot do this on MAC):
    1) Uninstall, from your PC, any BB OS packages
    2) Make sure you have the BB Desktop Software already installed
    http://us.blackberry.com/apps-software/desktop/?lid=us:bboftwareesktopSoftware&lpos=us:bboftware
    3) Download and install, to your PC, the BB OS package you desire:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    4) If that OS package is from a carrier other than the carrier for which your BB was originally manufactured, then delete, on your PC, all copies of VENDOR.XML...there will be at least one, and perhaps 2, and they will be located in or similarly to (it changes based on your Windows version) these folders:
    C:\Program Files (x86)\Common Files\Research In Motion\AppLoader
    C:\Users\(your Windows UserName)\AppData\Roaming\Research In Motion\BlackBerry\Loader XML
    5) Launch the Desktop Software and connect your BB...the software should offer you the OS package you installed to your PC. If, during the process, your BB presents a "507" error, simply unplug the USB cord from the BB and re-insert it...don't do anything else...this should allow the install to continue.
    Don't forget to backup.
    If you are on MAC, you are limited to only your carriers sanctioned OS packages...but can still use any levels that they currently sanction. See this procedure:
    KB19915How to perform a clean reload of BlackBerry smartphone application software using BlackBerry Desktop Software
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Showing Chinese characters being fetched from database.

    Hi,
    I have an application (using JSP and Servlets) that needs to show the data fetched from an nVarchar field from an Oracle database. When the data being read includes chinese characters, they are shown as "?". The encoding shown on the client browser is "ISO-8859-1", which clearly needs to be UTF-8.
    Can anybody guide me as to the settings required on the server to change the encoding and ensure that the pages are sent out properly.
    Regards,
    Manish.

    First, check to make sure that the strings sent to the browser are correctly encoded. Do so by manually switching the browser's encoding to the correct value. If you see the correct string, then set the charset to UTF-8. Some thing like this:
    Content-Type: text/html; charset=utf-8

  • Hi, am trying to display chinese characters

    hi,..i have problem displaying chinese characters using the reporting tools. i even changed the .jsp to use UTF8 encoding but the jsp doesnt display the correct chinese characters. Anyone can help ?

    Hi Teo Kai Liang,
    In order to display UTF-8 characters in the web output of your report, when it is deployed using the JSP engine (instead of rwservlet), you would need to add the following tag to its JSP web source in Reports Builder, between the <HEAD> and </HEAD> tags:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    This will tell the browser to display text using the specified character set. I have verified this using a report containing some static Simplified Chinese text in its web source.
    Thanks,
    The Oracle Reports Team.

  • How to configure my Firefox thus allowing me to input Chinese characters into the search box by using PenPower writing pad while this problem doesn't exist when I am using Internet Explorer?

    I am using the electronic writing pad made by PENPOWER Inc. to input Chinese characters onto my PC programs (e.g. Winword, Internet Explorer, Excel, etc.) But I can not make it happened on Firefox, please advice what I have to do with the configuration of the Firefox or using any other method to make it work. Thanking you guys in advance for helping me to solve this problem.

    cor-el,
    Thank you very much for your advice. The new software of Penpower works rightaway after I installed it on my pc. Thanks again.
    十分感激你的幫忙!

  • Arabic and Chinese characters are showing ??? in PDF

    Hi
    I hava an application which calls BI publisher API to generate PDF file from rtf temlate and xml input. It is fine for English contents. But the Arabic or Chinese characters are showing ??? in PDF. If I use BI publisher Desktop to load the xml and generate pdf file, it shows correct Arabic/Chinese Characters in PDF. I also copied ALBANWTJ.ttf file to my application JAVA_HOME/jre/lib/fonts/ folder. But it still doesn't work. Anyone can help me with this?
    Thanks a lot!

    I created xdo.cfg and put it in my JAVA_HOME/jre/lib/ folder. the file is configured as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
    <properties>
    <property name="system-temp-dir">/tmp</property>
    </properties>
    <fonts>
    <font family="Default" style="normal" weight="normal">
    <truetype path="/fonts/ALBANWTJ.ttf"/>
    </font>
    </fonts>
    </config>
    But now I'm getting this error while generating pdf file:
    Adobe Reader could not open 'xxx.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    Is there anything wrong in my xdo.cfg?
    Thanks!

  • Chinese characters are not displayed in the Firefox bookmarks

    Chinese characters are not displayed in the Firefox bookmarks. The name looks like e.g. "??????? ???? cn.nytimes.com"
    Chinese character of the site name is displayed ok in the head of the browser window and there is no problem reading chinese web content. I use Firefox Portable 11 /English from portableapps.com in Windows XP.
    I googled and got some tips:
    1) Set your browser to recognise Chinese language internet sites.
    Windows users: Under "Tools - Options" on your browser's menu-bar add Chinese to the languages list.
    - I did this.
    2) Set your browser's "Character Set" or "Encoding" to UTF-8 (sometimes also called Universal Alphabet or Unicode).
    Encoding settings can be changed under the "View" option in your browser's menu-bar.
    - It was already set to UTF-8.
    3) Windows users: If Chinese text still does not display correctly, East Asian language support may need to be enabled.
    - This has been done when I installed Windows.
    I still don't get any Chinese fonts in the bookmark names. I can edit the bookmark name with chinese characters and then save the bookmark, it works fine. But why does not Firefox recognize the characters when saving bookmarks? Help is appreciated.

    No I didn't change anything deep beneath the hood. My problem didn't apply to the URL, but to the name of the link or bookmark header or whatever you would like to call it. (When hitting Ctrl + D there is a Name field). I only got ???????? instead of chinese characters in the name. Also for e.g. www.cntv.cn ...but maybe all China is not in the whitelist either. ;-) But anyway, this was not the real problem for me.
    Apparently I was wrong as after a reboot of the computer it worked. The solution seemed to be to add Chinese to the language list. I don't know why it was not enough to restart Firefox?
    Now I only have problems to show chinese characters in the name field of my external link manager... But I guess it is not an issue for Mozilla.

  • Chinese characters scrambled when loading from DS to BW

    Hi, I've been pulling my hair out with this issue.
    I have a flat file containing Chinese text. When I load this in BW using 'FLATFILE' as a source system, it works fine. BW shows the correct Chinese characters.
    When I do the same load using BODI, I get funny characters.
    When I use BODI to load from one flat file into another flat file, the Chinese characters remain correct.
    What do I need to do to make sure I get the right Chinese characters in BW when loading from BODI?
    BODI is installed on Unix on Oracle 10.
    I run the jobs as batch processes.
    The dsconfig.txt has got:
    AL_Engine=<default>_<default>.<default>
    There are no locale settings in al_env.sh
    BW target is UTF-8 codepage.
    File codepage is BIG5-HKSCS
    BODI is set up as a Unicode system in SAP BW.
    When loading flat file to flat file, I get a message:
    DATAFLOW: The specified locale <eng_gb.iso-8859-1> has been coerced to <Unicode (UTF-16)
    because the datastore <TWIN_FF_CUSTOMER_LOCAL> obtains data in <BIG5-HKSCS> codepage.
    JOB: Initializing transcoder for datastore <TWIN_FF_CUSTOMER_LOCAL> to transcode between
    engine codepage<Unicode (UTF-16)>  and datastore codepage <BIG5-HKSCS>
    When loading to BW the messages are almost the same, but now the last step in UTF-16 to UTF-8.
    I read the wiki post which definitely helped me to understand the rationale behind code page, but now I ran out of ideas what else to check ( http://wiki.sdn.sap.com/wiki/display/BOBJ/Multiple+Codepages )
    Any help would be greatly appreciated.
    Jan.

    Hi all. Thanks for the Inputs. This is what I got when I clicked on the Details Tab of the Monitor....
    Error when transferring data; communication error when analyzing
    Diagnosis
    Data packages or InfoPackages are missing in BI but there were no apparent processing errors in the source system. It is therefore probable that there was an error in the data transfer.
    The analysis tried to read the ALE outbox of the source system. This lead to error .
    It is possible that there is no connection to the source system.
    Procedure
    Check the TRFC overview in the source system.
    Check the connection to the source system for errors and check the authorizations and profiles of the remote user in both the BI and source systems.
    Check th ALE outbox of the source system for IDocs that have not been updated.

Maybe you are looking for

  • Problem with Bridge CS6 and zooming to 100%

    When I click on a file to zoom to 100% it zooms to 800%. I had the same problem in CS5 and fixed it by deleting the com.adobe.bridge.plist, but this does not work with CS6 and I don't even find the plist. I have a Mac with OS X 10.8.2. I found two pl

  • Why can i NOT open PDF on Iphone4s all of a sudden

    I used to be able to retrieve all PDFs and other downloadable folders sent to my email on my IPHONE4s but they suddenly STOPPED opening saying either "portable document" or UNABle to download doc It's NOT YAHOO, because i can get the downloads as alw

  • Problem with Desktop Skype freezing, please help

    2 days ago, Dec. 23rd, I started up Skype as usual, but after about a minute, it froze, soon becoming "not responding". I opened Task Manager to try to end it manually, but Task Manager quickly became "not responding" as well, as did Chrome when I op

  • Cannot change Datasource location in report

    Post Author: TomS CA Forum: Data Connectivity and SQL I have a CR report that I am working on (inherited from another developer). For the life of me, this report will NOT let me change the database location! I need to point it to another database (MS

  • Bluetooth conectivity with windows vista

    I have just downloaded all the new updates 683.14.1. I still can not get the Bluetooth to work between my n73 & my vista computer. Can anybody help, thank you Ian