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

Similar Messages

  • [solved] Get chinese character to display in urxvt

    Hey guys,
    I'm running urxvt (specifically, rxvt-unicode-256xresources from the AUR), and I'm having trouble getting about half of the chinese characters to display.  For example, the character 刘 shows up as a box.  In my .Xresources, I have
    URxvt*.font: xft:dejavu sans mono:size=10:antialias=true,\
    xft:sazamani mincho:size=10:antialias=true,\
    xft:arphic ukai:size=10:antialias=true
    which I know covers the character at least once, which leads me to believe urxvt isn't choosing fonts corrects.  Anyone run into this problem before?
    Last edited by darkfeline (2013-01-10 01:08:43)

    Well I'll be!  I tried installing and using terminus, and it does indeed display it, but it was extremely ugly.  After reinstalling vanilla urxvt, using my original config worked like a charm!  I guess patches are patches for a reason.

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

  • Unable to get chinese character in print preview or in printout

    Hi Gurus!
    I have searched in SDN before posting this thread, as i could not able to find solution for my problem.
    In VL02n - Delivery note - my user gives the customer part number sometimes in English and sometimes in Chinese.
    Now i am facing the problem - i could not able to see any chinese characters in print preview ( it shows some garbage characters sometimes and sometimes #### ) and in printout - i see ####.
    The things i have done is:
    i have activated the multibyte functionality in local layout (ALT + F12) - I18N.
    Checked the printer output device - in SPAD - the device type is 'CNSAPWIN : MS WINDOWS DRIVER VIA SAPLPD'.
    In control panel - regional and lang. options - install east asian languages has got tick mark
    So what else i need to do to get the chinese characters in print preview as well as in print out.
    Thanks,
    Sakthi Sri.

    Hi Jeeva,
    Still i am searching for answer. Meanwhile, if you got any solution plz let me know too.
    Also, for me in PDF, i could not able to view the print preview at all. I am using Adobe Reader 7.0 and it is saying chinese simplified font is installed. but not able to view it. it is again and again asking to install it.
    may i know how you able to view it in PDF? or Are you using any higher PDF version?
    Thanks.
    Sakthi Sri.

  • Chinese character problem in clob filed,repost,pls Help!

    Hi all,
    We are developing a web-based information system,on Oracle 9i database Release 2 on a AIX platform,the Character set is ZHS16GBK(UTF-8).
    And OC4J is the web server we are planning to use,but installed on another AIX machine,the web page retriving data from a table with clob field,it is not correctly work,only English text can be displayed correctly,Chinese text is shown as '??????????????',other fields with Chinese is correct.
    But when we deployed the project from JDev to oc4j on a windows platform,everything is OK!
    I tried to set enviroment variable on NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK,LANG=zh_CN,but it still doesn't work.
    Please advise!
    Thanks!

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

  • Preview Chinese Character Problem

    Hi expert,
    I face a problem in smartforms, the problem is the Chinese char that I used it not show properly..
    It looks like the Char all is combine together but when I print it out, all is fine.

    If you have taken care of the two settings at windows and sap as shown below you should not face any problem.
    Windows->Settings>Control Panel>Regional and Language Option>Language Tick both the checkboxes over there.
    SAP->Customizing of local layout[nothing but last button of the toolbar at sap screen->Option--->I18N (Activate Multibyte Function Support)
    And then try to logon in SAP and use your transaction.
    I think you will not be able to see in print preview stage just take a print out and then check.

  • Crystal XI Chinese Character Problem

    Hello,
    I have a report that is out a notes section that may, or may not, contain Chinese characters. This report is loaded from SQL, and is displayed as an RTF field.
    When I view the report using Cyrstal Reports the Chinese characters appear correctly. But when I export out the report to PDF using the built in exporting tool, some of the letters appear as boxes (the majority of them appear just fine, its just certain ones).
    On the other hand if I print out the report using CutePDF, everything appears fine.
    Any thoughts on what could be causing this?
    Thanks,

    On the other hand if I print out the report using CutePDF, everything appears fine.
    Check the tool you are using, use the one that works, not a CR issue.

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

  • 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

  • How do we get Chinese keyboard support in Lion

    How do we get Chinese character support in Lion using American keyboard?

    As with any other language, you go to system prefs/language & text/input sources and check the boxes for the languages you want, plus the box for Show Input Menu in Menubar.  Then you select the language you want from the "flag" menu at the top right of the screen and type away.  There is Help available right on the machine plus a whole website here:
    http://www.yale.edu/chinesemac

  • Problem in parsing date having Chinese character when dateformat is 'MMM'

    I m calling jsp page using following code:
    var ratewin = window.showModalDialog("Details.jsp?startDate="+startDate,window, dlgSettings );
    In my javascript when checked by adding alerts I m getting correct values before passing to jsp,
    alert("startDate:"+startDate);
    In jsp page my code is like below:
    String startDate = request.getParameter("startDate");     
    but here I m getting garbage values in month when the dateformat is 'MMM', because of which date parsing is failing.
    This happens only Chinese character.
    following 2 encoding are already in my jsp page,can anyone help to find solution?
         <%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
         <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"/>
    I have even tried to read it as UTF-8 but still that's failing.

    This is my actual code
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Locale;
    public class TestingDate {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String dateFormat="EEEE, MMM d h:mm a";
              Date test=new Date(2007,0,19, 19, 31);
              System.out.println(" original date is "+test);
              String stringResult=DateToString(test,dateFormat);
              System.out.println("Date to string is "+stringResult);
              Date dateResult=stringToDate(stringResult,dateFormat);
              System.out.println(" String to date is "+dateResult);
              String stringResult2=DateToString(dateResult,dateFormat);
              System.out.println(" Date to string  is "+stringResult2);
    public static String DateToString(Date test, String dateFormat) {
             String result = null;
             try {
                  DateFormat myDateFormat = new SimpleDateFormat(dateFormat);
                     result = myDateFormat.format(test);
                     //System.out.println(" reslut date is "+result);
              } catch (Exception e) {
                   System.out.println(" Exception is "+e);
              return result;
    public static Date stringToDate(String strDate,String dateFormat1){
         Date result1=null;
         try {
              DateFormat myDateFormat = new SimpleDateFormat(dateFormat1);
              result1=myDateFormat.parse(strDate);
         catch(Exception e){
              System.out.println(" exception is "+e);
         return result1;
    }I am facing problem in getting the actual date. Please suggest the solution.

  • Problem with chinese character for dot matrix epson LQ-1600K III

    Hi All,
    I really runs out of idea about my problem now. The problem is about Print Chinese character to dot matrix printer (Epson LQ-1600K III). I tried to so many device type to solve this issue, looks like the only device type can be use are CNSAPWIN and CNEPSON with CNSONG font type. The others if I print to the printer, the chinese character became # (although in the print preview it`s okay and display correctly).
    Here is the bottleneck if I use CNEPSON:
    - if I have 2 window at the left and right position, if the left window has chinese character, the right window automatically shift right about 1.5 CM, which is damn weird!!! Can somebody help me
    - I tried so many ways to adjust the line size for my detail window (to cater positioning at pre-printed boxes), but looks the font size always become 10pt and line size cannot be adjustable (based on smartstyle).BUT if I used device type epescp2, it can be done!
    Here is the bottleneck if I use CNSAPWIN:
    - I need to create format type in windows and SAP (SPAD). and every PC that use this printer, must define the Paper size ( China Special paper size 12inch)
    - I also think this is not a good idea because as I far as I know this is not the correct way..
    Therefore, if somebody has experience about printer chinese character to dot matrix for Smartform and sapscript..please kindly help me give some advice.
    Do I use the wrong device type?
    Thanks in advance!
    Regards,
    Willy

    Hi friends , we are using the same model ....
    Are you using the chinese version operation system ? because we can print the chinese charaters without problem in LQ 1600KIII .....
    We are using CNSAPWIN device type + Frondend printing access method ....
    Carlos Zhang

  • The problem of Chinese character Mis-coding

    The version of my bea weblogic workshop is 8.1.3(build 2004.0630.115102).When I wrote some Chinese character in the jsp file,the Mis-coding appear.How can I resolve this problem?

    Thanks for your reply.
    I install the workshop on the window2000,and it's a locale specific one.
    I have resolve the problem with my workmate.Just open the menu->Tools->IDE Properties->Display,set the window font as Default and set the Source view font as Chinese character.Then everything is ok in restarting the workshop.

  • Chinese and Thai Character problems when publishing

    Hello All,
    I'm having trouble getting Chinese and Thai characters to display properly after publishing and using the htm file.  For the most part, Chinese is sharp, but certain characters get muddled up.
    For Thai it seems that Captivate is chopping off the top accents for Thai (4th level diacritics).
    Here are some screenshots:
    Is there a better font I could be using.  Is this something to do with Captivate? My computer? The browser?
    Any help is appreciated. 

    autopops1 wrote:
    Ok, i think i got the scriptaculous.js to upload. It fixed the video in the bottom left corner, but my facebook/twitter icons are still missing (when i look at Page Info it shows they are there) and the lightbox photo gallery i have still wont work properly and makes the media player above it still dissapear.
    on the right track.
    On your page you still have these codes:
    <img src="file:///C|/Users/JD/JamesJDDavis/photos/facebook_logo.png" alt="facebook" width="60" height="60" border="0" align="baseline">
    <img src="file:///C|/Users/JD/JamesJDDavis/photos/twitter-logo.png" alt="twitter" width="60" height="60" border="0">
    you need to change them to this:
    <img src="/photos/facebook_logo.png" alt="facebook" width="60" height="60" border="0" align="baseline">
    <img src="/photos/twitter-logo.png" alt="twitter" width="60" height="60" border="0">
    You also need to make sure the relevant photos are in the folder called this:     /photos
    hth

  • Chinese character display problem

    Hi
    I can't display normal chinese character in a portlet or even
    on a "button" in a portal server 4.0 sp1, is there any config
    file I should modified or any suggestion? Thanks a lots

    David,
    You should read the WLS I18N documentation. In particular weblogic.xml for
    WebApps contains a number of parameters that may be necessary.
    Sincerely,
    Daniel Selman
    "david" <[email protected]> wrote in message
    news:3d040d62$[email protected]..
    >
    Hi
    I can't display normal chinese character in a portlet or even
    on a "button" in a portal server 4.0 sp1, is there any config
    file I should modified or any suggestion? Thanks a lots

Maybe you are looking for

  • MSSQL Server 7.0 to Oracle 8.0.5

    Is there a tool available to migrate form SQLServer 7.0 to Oracle 8.0.5. My version of the migration workbench supports SQLServer 6.5 to Oracle 8.0.5, but it doesn't work with 7.0 best regards Stephan Thurek sft informationssysteme & consulting GmbH

  • Simple example code to connect to SQL server 2002

    Hi, I found a good website a while back which showed step by step how to connect to a sql server DB using JDBC, a re-install of windows means I cant find it again. I have searched the web, but to no avail. Basically I need to find a step by step guid

  • How to download iTunes 5.0.1 before installing 5.0.0?

    Hello. A few days ago I downloaded iTunes 5.0.0 using System Preferences > Software Update. I did not install the program until some stability issues were resolved. Today I used Software Update to see if there was a new version, and there it was vers

  • How to process images in service mode

    I am trying to build an image processing utility that can be used as a service (without UI). I tried to use the JIU project utilities: [http://schmidt.devlib.org/jiu/index.html], and discovered it doesn't work properly in service mode. Where can I fi

  • Digital copy unable to install

    I have been trying to install Iron Man 2 digital copy which is on the DVD disc also. Well I have been getting an unknown error and all it says is to check the disk and make sure its not dirty or damaged. Well I know have done that and nothing is on i