Chinese character code can't be displayed correctly

My os is windows , and english is not good , sorry about that , I hope you can understand me ,
the default charset is gbk , But my webapp charset is utf-8 , so , some words can not be displayed correctly ,
How can I fix it , Thank you .

Check if you have something like this in your .jspx :
<?xml version='1.0' encoding='UTF-8'?>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>

Similar Messages

  • Chinese characeter set can not be displayed correctly

    I'm using Portal 3.0.9.8.0,but Chinese character set on Label and Button can not be displayed correctly.
    what is the reason? How to resolve the problem?
    Thinks
    Frank

    hi,
    I finished the installation of language and chose Chinese in "Set Language" Portlet.The Portal becomes Chinese version.
    I use "Form based on table or view" method to created a form in Chinese and the process was favoring.The Chinese characters are displayed correctly.But when I edit any item(such as button text or label text) of this form all Chinese characters are displayed as unorderly code.What is the reason?May I get your help again?
    thinks,
    Frank

  • UTF-8 csv file generated by Java can't be displayed correctly on Excel 2000

    Hi, I have a question about the file geneated by Java in UTF-8 format. If I have a file named "foo.csv" generated by my java code like this:
    writer = new OutputStreamWriter(new FileOutputStream("foo.csv"), "UTF-8");
    Then I write some data loaded from a MS SQL 2000 server to this file. Some data are in German or french characters. After the file is generated, if I open it in notepad, all the characters in the file looks good. The file is in UTF-8 format. The only problem is that when I open this csv file in MS Excel 2000, all the non-english character display incorrectly. For example:
    "VERKTYGSTEKNIK I V�XJ� AB" display as itself in notepad, but it display as "VERKTYGSTEKNIK I V��XJ�� AB" in the MS Excel. I don't know the reason. If I don't have the encoding in the writer, then the file generated looks fine in the Excel (Even the non-English characters), in this case, the file is generated in ANSI format. But my client wants the file in UTF-8 format and also want to view it in Excel.
    Why the UTF-8 file generated by Java can't be displayed correctly in Excel 2000?
    My environment is:
    OS: Window 2000 Server English Version
    JDK: Sun jdk1.3.1
    Thanks

    - Does ms excell actually support UTF-8
    Yes. I believed that we installed some international add-on which is not in default installnation. Anyway, other UTF-8 or UTF-16 file can be openned and viewed by Excel without any problem.
    - have you verifide that the file is viewable as a UTF-8 -encoded file
    I think so. If I open it into Notepad and choose "save as", the file type if UTF-8 file
    - Try opening the file in a program you are confident
    that it support UTF-8 - eg. Mozilla...
    I will try that.
    - Check that your UTF-8 -encoded file has a UTF-8 identifier (0xFEFF ?)
    as the first character
    The unicode-16(LE or BE) file I got from internet, I found there is always two bytes in the front. (0xFEFF or 0xFFFE). My UTF-8 file generated by java doesn't have that. But should UTF-8 file also has this kind of specifcal bytes in the front? If I manually add these bytes in the front of my file using Ultraeditor and open it in Excel2000, it didn't help.
    - Try using another spreadsheet program that supports UTF-8
    Do you know any other spreadsheet program supports csv file and UTF-8.

  • Unwanted character codes (&amp; etc) from XML displaying in Flash

    I have a static, UTF-8 encoded XML document that gets loaded
    by a custom movie clip class into an array and then items from the
    array are read and displayed in a dynamic text field that is
    attached to the movie clip, depending on which one is rolled over.
    Everything works perfectly except that an ampersand displays as
    &amp; apostrophes display as &apos; and quotes display as
    &quot;, even if I use the special character inside the XML.
    Higher level character codes actually display properly, so
    character codes for circle shaped bullets, registered trade mark
    symbol, Greek characters, etc, work! But a blessed ampersand does
    not.
    Setting the dynamic text field to either read as HTML or not
    read as HTML makes no difference.
    Using CDATA tags in the XML makes no difference. In fact,
    when I use CDATA tags and enclose text containing a special
    character code, Flash goes the extra step of converting the
    ampersand in the special character code to &amp;!! So
    &quot; becomes &amp;quot;.
    Using &#38; just gets converted to &amp;. So Flash's
    XML parser is parsing the &#38 to an ampersand, which Flash's
    text parser then converts to &amp;. WHY? And how do I stop it?
    I found the function below to clean out the unwanted
    characters, and it works, but it seems a ridulous length to go to.
    And I probably have to extend it to accomodate whatever other
    characters don't work in Flash, but I don't know what those might
    be until I encounter them.
    Also, the function works whether I use a special character in
    the XML or not. ie, if I put an actual "&" into the XML, this
    function will display "&" and if I put &amp; into the XML,
    it will still display as "&".
    Thanks for any help.

    Have a look at this:
    http://www.smithmediafusion.com/blog/?p=144
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "maija_g" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a static, UTF-8 encoded XML document that gets
    loaded by a custom
    >movie
    > clip class into an array and then items from the array
    are read and
    > displayed
    > in a dynamic text field that is attached to the movie
    clip, depending on
    > which
    > one is rolled over. Everything works perfectly except
    that an ampersand
    > displays as &amp; apostrophes display as &apos;
    and quotes display as ',
    > even
    > if I use the special character inside the XML. Higher
    level character
    > codes
    > actually display properly, so character codes for circle
    shaped bullets,
    > registered trade mark symbol, Greek characters, etc,
    work! But a blessed
    > ampersand does not.
    >
    > Setting the dynamic text field to either read as HTML or
    not read as HTML
    > makes no difference.
    >
    > Using CDATA tags in the XML makes no difference. In
    fact, when I use CDATA
    > tags and enclose text containing a special character
    code, Flash goes the
    > extra
    > step of converting the ampersand in the special
    character code to &amp;!!
    > So '
    > becomes &amp;quot;.
    >
    > Using &#38; just gets converted to &amp;. So
    Flash is parsing the &#38 to
    > an
    > ampersand, which it then converts to &amp;. WHY? And
    how do I stop it?
    >
    > I found the function below to clean out the unwanted
    characters, and it
    > works,
    > but it seems a ridulous length to go to. And I probably
    have to extend it
    > to
    > accomodate whatever other characters don't work in
    Flash, but I don't know
    > what
    > those might be until I encounter them. And the whole
    point to using the
    > XML was
    > so that someone without Flash could update the file.
    >
    > Thanks for any help.
    >
    > private function cleanTextFunc(txt):String {
    > txt = txt.toString();
    > txt = txt.split("&apos;").join("'");
    > txt = txt.split("&amp;").join("&");
    > txt = txt.split("&quot;").join("\"");
    > return txt;
    > }
    >

  • Why is the character style for hyperlinks not displaying correctly in design mode/viewing/output?

    I am using RH9 and generating WebHelp, and I needed to globally bump up the font size of just my hyperlinked text. I went into my Style Sheet > Character tab, changed the font size of the various character settings for hyperlinks, and clicked Apply and then OK. Normally, this would change all of my hyperlink text font sizes immediately across all of my topics. However, this time, it made no changes to any existing hyperlinked text, and it only affected new hyperlinks that I subsequently added. For the existing hyperlinks, I can only manually change the font size of the each hyperlink one at a time, but that's crazy (there's 100's in this help).
    I can successfully change other characters styles and paragraph styles. This issue only affects the hyperlink character styles. It also shows up in all RH modes - Design mode, viewing, and in the final output.
    Is this an indication of a corrupted style sheet or some other combination of events that I have yet to discover?

    Hi,
    You probably have inline styling in your project overwriting the font size of your style sheet. How are you changing the font size of the individual hyperlinks?
    There is a workaround for inline styling: Open your CSS in notepad and add !important after the font-size:
    font-size: 4pt !important;
    Note that this is a workaround, not a solution. As a solutions you can remove all the style attributes from your hyperlinks to force them to take the CSS styling again.
    Greet,
    Willam

  • I'm using the free epub reader, the file I imported says "Due to an error in the ePub file, the table of contents can't be displayed correctly.

    For experts: The NCX-file is not a valid xml-file..Can you help me? Donna

    Hi,
    It's actually not the first time I have seen this issue, please refer to this thread below:
    https://social.technet.microsoft.com/Forums/en-US/01bbe40c-f522-4148-a7cc-86303da5416d/your-file-could-not-be-printed-due-to-an-error?forum=excel
    Here are some suggestions:
    1. If this issue only occurs to one Workbook, copy the file contents and paste them to another new Workbook, try to print and check the result.
    2. Maybe Excel is configured to run in Compatibility Mode. Right click on the Excel shortcut, click Properties -> Compatibility tab -> If Excel is configured to run in compatibility mode, untick it and click OK.
    3. There may be some corruption in the Excel install, try to repair Office from Control Panel -> Programs and Features.
    I hope the information is helpful to you in this scenario.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Chinese name cannot be displayed correctly in IM

    hi all,
       We use IM as short message tool.But one problem is : We can type Chinense,and it's displayed correctly,but if one user with chinese user name send something message.some disorder words are displayed. What's the problem?
    Our ep is 7.0 sp 8
    thank you~!
    br
    delma

    Thanks for your help Peter. If I just double click the file
    in Windows Explorer, it displays well. The code referenced in the
    file can be shown correctly.
    I tried the same guide generated using RoboHelp5, everything
    is OK (I'm using RoboHelp 7.0 now). The code in that topic displays
    correctly either when the topic is opened from TOC or from the
    search list. However, this topic (file) hasn't been changed any
    more ever since it was created, so I think something might be wrong
    with RoboHelp 7's search functionality. Our QA guess the code may
    be complied when RoboHelp performing the searching.

  • Display chinese character HTML in iPS3sp3

    Hi there,
    I am using iPS3sp3 and I modified it so that JSP can display chinese character correctly. But somehow I still can not display the chinese character in normal HTML.For instance, I put chinese character in Ldap.properties file but when user go to the Ldap login screen, the chinese can not be displayed correctly. The following is the modification I have done and can anybody please give me some help?
    adding zh_TW in iwtPlatform-availableLocales
    adding zh_TW in iwtPlatform-locale
    adding BIG5 in iwtPlatform-HTMLcharset
    adding ips.locale=en_US,zh_TW,zh_TW.BIG5 in platform.conf file
    Setting, User's Default Locale: zh_TW
    Setting, User's Default HTML charset: BIG5

    Finally, I made it work. The solution is pretty straight forward. All I need to do is to convert these kind of html file to utf8 encoded files and then, it works perfectly. Hope this might be useful for some people.

  • Japanese Data cannot be displayed correctly

    Hi, We are using Java 1.2 (upgrading to 1.5), iPlanet_sp5 and oracle 9i database. Suddenly from the 31st of May 2006, the data can not be displayed correctly on the browser. The data is OK in the database and also the oracle reports generated are ok. The problme is only when the data is retrieved from databse and displayed on frontend. The browser for frontend is IE. Pls help as this is becomign a mystery. Thanks.

    Thanks for your help Peter. If I just double click the file
    in Windows Explorer, it displays well. The code referenced in the
    file can be shown correctly.
    I tried the same guide generated using RoboHelp5, everything
    is OK (I'm using RoboHelp 7.0 now). The code in that topic displays
    correctly either when the topic is opened from TOC or from the
    search list. However, this topic (file) hasn't been changed any
    more ever since it was created, so I think something might be wrong
    with RoboHelp 7's search functionality. Our QA guess the code may
    be complied when RoboHelp performing the searching.

  • Some Language fonts no longer display correctly

    I have a few language fonts, specifically Russian and Church Slavonic, which I have been using for years without any problem. They still partially display correctly, but there are some characters which display a different character now. For instance, in the Church Slavonic font, there are many characters with diacritical markings, where those accents etc. are typed after the character and backed up over the character. They are not displaying correctly anymore. Plain Russian fonts as well have certain characters that aren't even recognized now. I am using PopChar Pro, and though they display correctly in its list, when I click on them, the wrong character is display in the text. Does this have something to do with Unicode? I use these fonts mostly in MS Word and Finale.
    Thanks for any help on this topic.
    Sima

    Yes, it is true that these fonts do not display
    correctly in Finale.
    Last I checked Finale could not do Unicode, so it may be another problem. If it can do Unicode, you should be able to use Lucida Grande and the Russian keyboard layout. If not, you should be able to use a font with CY after the name with the Russian keyboard. You might want to ask in the Finale forums:
    http://forum.makemusic.com/
    Is there any sort of application
    that can fix old fonts to be Unicode compatible?
    It would be very complex I think and require an expensive font editing program like FontLab.
    On another note, are you aware of whether Unicode
    includes Church Slavonic (I suppose it would be in
    the same category as Old Slavonic)?
    Yes, it does. Just look at the Cyrillic block in Character Palette. Or here:
    http://www.unicode.org/charts/PDF/U0400.pdf
    However you won't find all glyph variations -- that will depend on the font. For an example of Slavonic Unicode you can see the last item on this page:
    http://homepage.mac.com/thgewecke/lp.html

  • Search results cannot be displayed correctly

    I have a topic which references some code. The code can be
    displayed correctly when the topic is opened from the TOC, however,
    when I use some keyword to search for that topic and open it from
    the Search list, the code in the topic cannot be displayed
    correctly. Has anyone ever encountered such problem?

    Thanks for your help Peter. If I just double click the file
    in Windows Explorer, it displays well. The code referenced in the
    file can be shown correctly.
    I tried the same guide generated using RoboHelp5, everything
    is OK (I'm using RoboHelp 7.0 now). The code in that topic displays
    correctly either when the topic is opened from TOC or from the
    search list. However, this topic (file) hasn't been changed any
    more ever since it was created, so I think something might be wrong
    with RoboHelp 7's search functionality. Our QA guess the code may
    be complied when RoboHelp performing the searching.

  • It's possible to convert 'WE8MSWIN1252' character to chinese character set?

    Hi All,
    Is anyone know how to convert "WE8MSWIN1252" character to chinese character set in order to display chinese word in oracle apex?
    My problem is i can't display chinese character set in oracle apex. The chinese field is showed like °×ѪÇò¼ÆÊý. I'm using WE8MSWIN1252 database character set.
    I'm wondering it's possible to show character word?
    I'm appreciating if anyone have a good solution to share with me.
    Thanks a lot in advance!
    Edited by: Apex Junior on Jul 16, 2010 2:18 PM

    WE8 is a Western European character set. If you wish to store and access a globalized multibyte character set you must have a database that supports it: You don't have one at the moment.
    Given this is Apex I'd suggest you read the docs and reinstall.
    Alternatively you could try CSSCAN and CSALTER and perhaps you can make the change but be very careful and have a good backup before you try.
    http://www.morganslibrary.org/reference/character_sets.html

  • FireFox home page does not always display correctly, hence I cannot do anything

    On my Dell laptop the FireFox home page does not always fully display. When this happens I cannot access several web sites and some that I can do not display correctly either. On some occasions everything works correctly.
    I have 2 Dell Inspiron laptops the same except one is running Vista (the one that does not always work) and one running Windows 7 (this one has no problems).

    On my Dell laptop the FireFox home page does not always fully display. When this happens I cannot access several web sites and some that I can do not display correctly either. On some occasions everything works correctly.
    I have 2 Dell Inspiron laptops the same except one is running Vista (the one that does not always work) and one running Windows 7 (this one has no problems).

  • How can I display Chinese Character correctly in JSP

    <p>Dear Expert,</p><p>Now I develop web application which using CR report, the development tool is IBM RAD(rational) and the database is DB2 UTF-8. Because need user to input something in JSP, so the programmer use "GB2312" to convert to insert into the database. But when I create the crystal report and view in the web, the Chinese character can&#39;t disply correctly, like "???????", even I formated the font in report, doesn&#39;t work too.</p><p>And I set the report JSP charset to "GB2312" or "UTF-8", both of them failed. Following is my JSP seting:</p><p><%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%%></p><p>or <%@ page language="java" contentType="text/html;charset=GB2312" pageEncoding="GB2312"%%></p><p>And I think I must convert the data from database site firstly, then display, but I don&#39;t know where I can coding it and how to coding? Could any one tell me how to get it? </p><p>I use RAD(Rational) as development tools.</p><p>Thanks so much for your any comments. Many thanks!</p><p>Steven</p>

    <p>Hi Steven,</p><p>         It sounds like you are on the right track to get the Chinese data to appear up correctly in the report. Can you tell me if you are using the JSF viewer or the JSP viewer?</p><p>From what the developers are telling me the following should work:</p><p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">For JSP viewers to set  content type correctly you can either use</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial"><%@ page  contentType="text/html;charset=UTF-8" %></span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">Or</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">response.setContentType("text/html;charset=UTF-8âu20AC)</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">or  </span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">simply call  viewer.setOwnPage(true); if it not necessary to blend with other  pages.</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial"> </span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">For JSF viewer the  third option is not available.</span></font></p><p class="MsoNormal">What does your JSP page code look like? Also, what does the output look like?</p><p>Finally, one last thing is to ensure that the font you are using in the report is available to the engine at runtime. This will mean that it wll need to be installed on the application server where your JSP page is running. Give this a try and let me know what you find. </p><p>Regards,<br/>Sean Johnson (CR4E Product Manager) <br/><br/> Rate this plugin @ Eclipse Plugin Central          </p>

  • How can i display chinese character in asp?

    ---windows2003
    ---iis6.0
    ---oracle92010
    ---oo4o
    oracle character set is we8mswin1252
    sqlplus display chinese character normally.
    when i export the oracle table into microsoft excel,the excel can display chinese character normally.
    but when i write code in asp.The IE can not display the chinese character?
    who would tell my why?
    Message was edited by:
    user525971

    Hi,
    here's a link to the SQL Developer forum: SQL Developer
    Frank

Maybe you are looking for