How to display different language?

first i input different language(like chinese ) into context
and then it will be stored into OracleDb
however when i view the jsp page, The character that i inputed is changed.
how can i do? And can i use class java.util.locale. give me a example.
thanks

you probably are getting the text encoded as ISO8859-1 instead of the Chinese. try translating it like this:
String s = new String(rs.getString("name").getBytes("ISO8859-1"), "BIG-5");
or whatever encoding you use for Chinese, where rs is a result set from the DB

Similar Messages

  • How to handle different languages in Illustrator for big clients?

    Hi Guys,
    I need small suggestio for 'How to handle different languages in illustrator for big clients'. For instance; Arabic, this is a language which  needs to be read from right to left instead of left to right. There are  other strange languages as well (Cyrillic, Chinese etc.). It happens  also that when you copy strange languages from a word file it will not  be easy to paste it the correct way in a .ai file. Besides that, it’s  also difficult to do a language check when we are not able to read it!. So,  to make a long story short, I want to figure out how we can deal with multiple language  circles?
    Can you some please give me the solution for this...
    Thanks in advance...
    HARI

    I take it you might come from an arabic background.
    Here is how you can help yourself to some degree.
    Google has a translation feature and service which is at the moment free. It is excellent.
    Secondly if you are working with ME languages you really need the ME version of Illustrator or any other Creative Suites Application in order for it to work properly.
    It, is also best to enable the language and the input for that language for your system on the Mac it is easy you go to the Language and text feature in theSystem Preferences, once enabled you can select the fro the menu bar under the American flag if you are in the US. Thst will appear once you have more than one language selected.
    You select the language input you need and then a font for that language then paste and edit.
    You need fonts on your computer that are of those languages as well.
    How to manage this as a work flow well that is something you will have to work on yourself or hire a consultant who specializes in this area.
    We had a few visit here when they have come across a snafu. So they exists.

  • How to display different icon, for different node of jtree

    Hi All,
    How to display different icon, for different node of jtree

    you haven't responded to my last post here: [http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676|http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676]

  • How to display different fonts in same indicator in labVIEW

    hi 
       i want to know how to display different fonts in same string indicator at run time in labVIEW 8.2
    Regards
    Abhishek Verma

    Hi ABHI VERMA,
    see this http://digital.ni.com/public.nsf/allkb/6BD344ACA4DEE20A8625692700737E16 
    Mike

  • Displaying different languages in Browser

    Hi,
    Can any one of you please help me how to display our site in different languages.
    Thank you,
    Harshavardhan

    UTF-8
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title></title>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body bgcolor="#ffffff" background="" text="#000000" link="#ff0000" vlink="#800000" alink="#ff00ff">
    <%
    request.setCharacterEncoding("UTF-8");
    String str = "\u7528\u6237\u540d";
    String name = request.getParameter("name");
    %>
    req enc: <%= request.getCharacterEncoding() %><br />
    rsp enc: <%= response.getCharacterEncoding() %><br />
    str: <%= str %><br />
    name: <%= name %><br />
    <form method="GET" action="_lang.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="Submit Get" />
    </form>
    <form method="POST" action="_lang.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="Submit Post" />
    </form>
    </body>
    </html>

  • How to display different Splash Screen depending on the Locale?

    Hi,
    I have a splash screen which is working fine.
    I want to display different spalsh screen depending on the locale the user has.
    Is this possible.
    I can display different Title,Description and the text of the short-cut icon on desktop and startup Menu based on the locale by mentioning it in the JNLP and altering my browser settings. I am not able to use the icon and splash screen corresponding to the specified locale. How to do this?
    EX:
    <information>
    <title> In english</title>
    <description> In english</description>
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <menu submenu="My Project in English language"/>
    </shortcut>
    *<icon kind="shortcut" href="images/icon_english.gif"/>
    <icon kind="splash" href="images/splash_english.jpg"/>*
    <!-- locale="nl-NL" specifies dutch -->
    </information>
    <information locale="nl-NL">
    <title> In Dutch</title>
    <description>In Dutch</description>
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <menu submenu="My Project in Dutch language"/>
    </shortcut>
    *<icon kind="shortcut" href="images/icon_dutch.gif"/>
    <icon kind="splash" href="images/splash_dutch.jpg"/>*
    </information>
    *Now here i am not getting the splash_dutch screen for the locale "nl-NL"(Dutch) and i am getting splash_english screen.
    Can we acheive this?*

    Hi anjali...
    I have problem with splash screen..
    here is my jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/MyProject">
         <information>
              <title>MyProject1.0</title>
              <vendor>none</vendor>
              <description>Application Launcher For MyProject1.0</description>
              <description kind="short"></description>
              <offline-allowed />
              <icon kind="splash" href="images/Splash_MyProject.jpg" width="560" height="300"/>
         </information>
         <resources>
              <jar href="SwingApplication/mysql-connector-java-5.0.6-bin.jar" />
              <jar href="SwingApplication/MyProject1.0.jar" main="true"/>
              <jar href="SwingApplication/liquidlnf.jar" />
              <j2se version="1.6+" java-vm-args="-Xms32M -Xmx256M " />
         </resources>
         <security>
              <all-permissions/>
         </security>
         <application-desc main-class="com.mobius.ui.MainWindow">
              <argument>production%0%3#com.mysql.jdbc.Driver#MyProject4%jdbc:mysql://10.100.1.89:3306/MyProject4%MyProject%info123#MyProject2%jdbc:mysql://10.100.1.89:3306/MyProject2%MyProject%info123</argument>
         </application-desc>
    </jnlp>my post is in
    http://forum.java.sun.com/thread.jspa?threadID=5298381
    http://forum.java.sun.com/thread.jspa?threadID=5298466
    I am in big problem Help me...
    Edited by: arunnprakash on May 22, 2008 1:28 PM
    Edited by: arunnprakash on May 22, 2008 1:28 PM

  • How to support different language and print in non-english language from AS

    I want to print different language that users enter in Oracle 9i AS and print reports in english and other language like spanish.
    How do I configure the AS Server, I am running 9i AS on Windows 2003, I have changed NLS_Lang setting in registry but it doesn't work.
    Please provide setting and if any environmental vairables I have to set in Reports properties files or elsewhere.
    Thank you.

    Did you select the languages on the first screens of the Universal Installer, when installing this instance? If not, you may need to do it again to enable support for that language.

  • How to display different Time Statement forms in ITS service PZ04

    Hi all,
    I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
    The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
    I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
    The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
    Looking forward to here if anybody can help.
    Regards,
    Allan Brauer

    hi allan,
    cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
    plz help me how will i replace this "hrforms with pe51"..

  • In Po, How to call different language form ?

    Hi Experts
      For our Japan/China Po form, it has different language. When we create Po and get the output type, How to control which language form it will call?  Since on different language form, some words language is different .
    THanks
    ALice

    Hi greetings
    In general, the Purchase order from will br triggered in the Vendor communication language. ( Maintained in vendor master-General date-Address) provided the Form has been maintained in the specified language in the configuration of output type.
    Gobinathan G

  • How to display the 'language code' for language dependent 'Short text' ?

    Hi,
    I am new to BW.
    Can somebody help me with the following issue?
    I have an attribute 'Material category description'  and I chose short text exists and made it language dependent. I had loaded the master data successfully.
    Now I want to know how to check the 'language code' for this material category description. When I display the data, will the language code display by defalult?
    I had checked the text table using SE11
    It displays the following fields over there.
    /BIC/TS1_MCT_DS   [  /BIC/TS1(InfoObject name)  ]
    LANGU
    TXTSH
    I appreciate your help!
    Thank you
    Sekhar

    Dinesh,
    I went to RSD1 -> info-object -> Master Data/text tab. It shows my language selections there (Short text selected, language time dependent etc.) with everything grayed out.
    In SE16, I could display the data in the following format.
    /BIC/ST_PRID                TXTSH                 TXTMD
    P01                                   umbrella                 rainyday
    P02                                  tent                         waterproof
    etc.
    I want to see the 'language code' as one of the columns in this table.
    Can you help me do that?
    Thank you,
    Sekhar

  • How to display Chinese language?

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

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

  • How to display different headings in list form using "hide content" in SPD 2010

    I built a custom list form in SPD, and applied conditional formatting in some rows
    Now I like to display different headings (above the 1st row of the form), based on the same condition:
    e.g. when Status=available, display the heading "SIGN OUT"  (as the item is available for sign-out)
    when Status=on-loan, display the heading "SIGN IN" (as the item can be signed in)
    right now I put the two different heading in two lines in the heading space: 
    SIGN OUT
    SIGN IN
    I tried following and it works for this part:
    select the text SIGN IN
    select "create' in "Conditional formatting" pane
    select Hide Content
    Set: Status=available
    click OK
    Then the "SIGN IN" text disappeard.
    But how can I set another conditional formatting to show only "SIGN IN" when Status=on loan?

    Hi,
    If you like to show "sign out" when status=available and show "sign in" when status=on-loan.
    Please try modify the Conditional Formating rule as below:
    Select the text SIGN IN, show content, status not equals available
    Select the text SIGN OUT, show content, status not equals on-loan
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • How SAP supports different languages

    Hi All,
       I need documentation on How SAP interacts with other languages i.e. How SAP supports other languages and what is the role of technical people and also functional people to maintain the different languages.
    Thanks & Regards,
    Amit Suryawanshi.

    Hi,
    Internationalization is available in SAP.
    The goal of Internationalization is to provide the technical foundation for enabling programs to support multiple scripts and languages without redesign or modification. Once a user has selected a logon language, all programs must transparently alter their run-time behavior to meet the expectations of the user. Internationalization furthers generic programming, because hard-encoded search strings, error messages, etc. may work in one language, but not in another.
    Internationalization interacts with every face of the system: logon language, language input, menu texts, sorting, character conversion, printing, data transfer - simply put, it is the technical underpinning of global business software.
    If a system or application can support any language, then it is fully internationalized; if it only supports a limited set of languages, then  it is partially internationalized. SAP offers full internationalization by supporting Unicode code page technology.
    I hope the following link will help you....
    http://help.sap.com/saphelp_nw04/helpdata/en/8e/7ce87a2aede645ae3cdc857b791590/content.htm
    Regards,
    Harish

  • How to use different languages in iDVD

    I want to create a DVD with different languages or with an audio comment to be chosen. Is this possible?

    Hi
    No and Yes
    If You want as an commercial DVD - NO - this function is not in iDVD
    Can it be faked? - YES for small videos as iDVD is limiting in TIME not Gbs
    So for as Single Layer DVD the limit is about 120 minutes (Pro-Quality Encoding and High Quality Encoding) and by keeping Menu as simple possibly this will be close to 118 minutes.
    For a four language version then the max time per movie will be about 19 min 30 sec.
    So the fake is made by making four individual movies one in each language and add all four to the DVD project.
    Only way - Sorry
    Yours Bengt W

  • How to display different icon within WDA alv table base on row data ?

    Hi,
    is that possible to display different icon for every row within ALV table depending on the row data ?
    for instance if the status 'S' display ~Icon/SuccessMessage and 'E' display ~Icon/ErrorMessage ?
    because base on this code below i only can set 1 icon for the whole row data.
    LOOP AT lt_columns ASSIGNING <fs_column>.
        CASE <fs_column>-id.
          WHEN 'ICO'.
            CREATE OBJECT lr_caption.
               lr_caption->set_image_source( value = '~Icon/SuccessMessage').
               <fs_column>-r_column->set_cell_editor( lr_caption ).
        ENDCASE.
      ENDLOOP.
    Thank you in advance.
    Fernand

    Hello,
    Yes it is possible to display different images based on data.
    For that what you can do is create one attribute 'STATUS' of type string in context node which you are mapping to ALV.
    And fill that attribute with the path to image based on your requirement like for status 'S' set the attribute to ~Icon/SuccessMessage and if status is 'E', set it to ~Icon/ErrorMessage at runtime.
    Now in the settings for ALV use the following code:
    * Display icon in column seatsocc
      DATA: lr_column TYPE REF TO cl_salv_wd_column,
            lr_image TYPE REF TO cl_salv_wd_uie_image,
            lv_icon TYPE string.
      lr_column = lv_model->if_salv_wd_column_settings~get_column( 'SEATSOCC' ).
      CREATE OBJECT lr_image.
      lr_image->SET_SOURCE_FIELDNAME( 'STATUS' ).
      lr_column->set_cell_editor( lr_image ).
    in the above code, column 'SEATSOCC' will be displayed as an icon.
    Sample code to fill the attribute 'STATUS'
    LOOP AT lt_flights INTO ls_flight.
        lv_seatsfree = ls_flight-seatsmax - ls_flight-seatsocc.
        IF lv_seatsfree = 0.
          ls_flight-status = 'ICON_RED_LIGHT'.
        ELSEIF lv_seatsfree <= 50.
          ls_flight-status = 'ICON_YELLOW_LIGHT'.
        ELSE.
          ls_flight-status = 'ICON_GREEN_LIGHT'.
        ENDIF.
        MODIFY lt_flights FROM ls_flight.
      ENDLOOP.
    Hope this helps!
    Regards,
    Srilatha
    Edited by: Srilatha M on Jun 25, 2010 12:02 PM

Maybe you are looking for