Japanese text display problems in applet using plugin

Hi,
We've been beating our heads against the wall on this one for quite some time, so any help would be greatly appreciated.
Our product uses a third party applet (Kavachart from Visual Engineering) to display graphical statistics from our database. We are currently localizing our product to support english and japanese. With Japanese enabled, all pages use euc-jp encoding. The problem we are running into is in the display of japanese text inside this applet in IE 5 and NS 4.7x when using the java plugin (1.3 or 1.4). If the default jre of the browsers are used, the text in the applet renders fine.
On a suggestion from the supprot folks at Visual Engineering, I modified our code to set the defaultFont parameter on the applet to "serif, 14, 1". With this set, the text in the applet renders ok in IE, but NS on windows and unix is still broken. Given that we are doing all these tests on machines running a native japanese OS, it's not even clear to me why setting the defaultFont should even be required, but at this point, I'll take anything :-)
Has anyone else run into this and either solved it or proven that a solution is not feasible? I'm at my wits end here....
Thanks in advance,
Mark Evangelisto
Synchronicity Inc.

If you are using different java plugin, you need to install the international version of the JRE; otherwise, some characters may not be able to display correctly since some of the properties files are missing.
As for Visual Engineering's suggestion. I don't know why they tell you to set the default font on the applet because it may cause the browser to use the font specified. Your applet works on IE because it will try to use the best font to match the web page's content. For NS anything less then 6.0 (technology based on Mozilla), they never display web page correctly especially if you did what VE suggest.
If you are running the applet on the native langauge OS with the international version of the JRE installed, the applet should display correctly without setting the default font. If it is not the native langauge OS, first you need to install the international version of the JRE and have the fonts that are able to display the language the applet use.

Similar Messages

  • Display problems in IE, using Netlace Designs approach

    Display problems in IE, using Netlace Designs approach
    Could someone please look at
    www.tudo.co.uk/testing/magnification/
    I am trying to adjust some css code taken from Netlace
    Design's website
    for my purposes. The purpose is to enlarge an image on
    'hover' and to
    enlarge some text on 'hover'.
    What I have done works all right in Mozilla/Seamonkey.
    However, in IE,
    the 'text enlargement' does not work at all
    and when I am enlarging the image there is ***in IE*** a
    large grey
    surplus area at the bottom, which looks like a background
    area which has
    turned out to have too much height. I want to get rid of that
    superfluous grey area.
    How can I make sure it works in BOTH Mozilla and in IE?
    Thanks for your help.
    Adrian

    Hi ijmari,
    I checked out that page and don't see any Spry menubar in it.
    I'm assuming you've reverted back or removed it.
    If you still need/want help, please post the URL to the page
    that uses the menubar and demonstates the problem.
    --== Kin ==--

  • Japanese Character Display Problem

    It seems like the new JRE does not allow Japanese characters to be displayed on anything but the title bar of an application when running on a US English XP SP2 system with all of the proper language support installed.
    I can see the Japanese Characters in the title bar, but in the rest of the application, they appear as outlined blocks. All of the text is coming from the same resource bundle so I know that it is loading correctly because it appears in the title bar correctly.
    On a Japanese system with XP SP2, everything works as expected. Is there anything that I can do to correct this? I am using JRE 1.4.2 to compile the application, and the latest JRE to display it.
    Any help would be greatly appreciated.
    -Steve

    HI out there,
    i'm having similiar problems when trying to parse / transform a database-generated xml-string containing Japanese characters into an html using a saved xsl file. I've tried zillions of ways (got from specialized forums) to do it getting hardly the same result all the time.
    Now the point is that i'm getting the known-by-all "???" characters
    but i've checked that the xml string is Genereted correctly from
    the database using in my JSP page:
    String aux = new String(TXT_FROM_DATABASE.getBytes("ISO-8859-1"), "UTF-8");...
    then the JSP sets
      request.setCharacterEncoding("UTF-8"); (not necessary i guess)
       response.setContentType( "text/html; charset=UTF-8" ); and calls a function XML2HTML (from a *.class) that makes necessary
    operations to call the transformer.transform method:
    // auxiliary function to convert the string into UTF-8 (to ensure)
    // has been tested that when calling to xml2html the String xml_string
    // is correctly formed and does contain all japanese characters (all)
    public static String convertString(String s, PrintWriter pw_out) {
           try{
             if(s == null) return s;
             String aux = "";
             byte[] bari = s.getBytes("ISO-8859-1");
             aux = new String(bari, "UTF-8");
             return aux;
           }catch (Exception e){
             pw_out.print(e.getMessage());
             return "";
      public static void XML2HTML(String xml_string, String xsl_file, ServletRequest req,
          ServletResponse res) {
          PrintWriter p_out=null ;
          String appdir = req.getRealPath("/"); 
          try{
            p_out = res.getWriter(); 
          } catch (Exception ioException){
            System.out.print(ioException.toString());
          // transformating ...
          try {
          // Creating the transformer object from the XSLT_file
          javax.xml.transform.stream.StreamSource xslFile  = new StreamSource(new File(appdir+"\\"+xsl_file+".xsl"));
          javax.xml.transform.TransformerFactory factory = TransformerFactory.newInstance();
          javax.xml.transform.Transformer transformer = factory.newTransformer(xslFile);
          transformer.setOutputProperty(javax.xml.transform.OutputKeys.ENCODING,"UTF-8");
          transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT,"yes");
          transformer.setOutputProperty(javax.xml.transform.OutputKeys.METHOD,"html");
         // create the source Stream
          String xmldata = convertString(xml_string,p_out);
          StringReader xml_sr = new StringReader(xmldata);
          StreamSource xml_source = new StreamSource(xml_sr);
          // result Stream
          javax.xml.transform.stream.StreamResult outResult = new javax.xml.transform.stream.StreamResult(p_out);
           //calling the transform method !! (source/result)
          transformer.transform(xml_source,outResul
          } catch (Exception e){
            p_out.print ("<br/>EXCEPTION__" + e.toString());
            p_out.print ("<br/>CAUSE" + e.getCause());
            p_out.print ("<br/>nMSG" + ((TransformerException)e).getMessageAndLocation());
    } and my XSL DOES contain these lines at the very beginning:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="UTF-8" media-type="text/html; charset=UTF-8"/>more:
    * all my files are saved as UTF-8
    what makes me go crazy:
    * In the jsp after the call to the xml2html method i've written
    <%=xml_string%> and it does write "????" characters for all elements
    except for one of them (japanese word that i wrote out directly in japanese,
    but if in the jsp page i INCLUDE
      <%@page language="java" pageEncoding="utf8" contentType="text/html; charset=UTF8"%>
    THEN THIS only written-out element in japanese is not displayed correctly either.
    and even MORE !
    if in the xsl file i include:
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      </head> it does not display it correctly neither...
    is this possible ?
    may the problem be that the function i'm calling is in a *.class ?
    please help (i've been working around for days now)
    my work enviroment is
    eclipse (project set to utf-8 encoding)
    wsas 5.0
    jdk 1.4
    thank you for your time
    and nice day to you all!!
    gREEtings from malaga (spain)

  • Chess Piece display problem in applet

    Hi,
    I'm writing a chess game applet which will be played between to players over the internet. I'm currently working on the applet side at the moment and will develop the server side once I have completed the applet. I'm currently having problems displaying the actual chess pieces on the board at the moment. One of my design decisions was to make a Board class which extends a JPanel. I have painted the actual chess board squares within the Board JPanel. I then propose to draw the pieces on top of these squares (good design decsion? Can anyone suggest another way. I was thinking of having the images as a separate layer which will sit on top of the squares but wasn't sure how to implement it). The chess pieces are contained in a gif strip www.dur.ac.uk/j.d.p.murphy called ChessPieces02.gif . The problem I am having is to display several pieces at the same time. I lloked at a Java tutorial which suggested using g.clipRect() method to display a defined section of the strip (i.e. a single piece of a certain length). Below is the Board class that I am using.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Board extends JPanel{
    // Holds location of the mousePressed event
    Point point = null;
    // Size of a square square on the board
    int square_size = 40;
    // Mediatracker to monitor the loading of the images
    MediaTracker tracker;
    Image image;
    void init() {
    tracker = new MediaTracker(this);
    image = Toolkit.getDefaultToolkit().getImage("ChessPieces02.gif");
    tracker.addImage(image, 0);
    try {
    //Start downloading the images. Wait until they're loaded.
    tracker.waitForAll();
    } catch (InterruptedException e) {
    e.printStackTrace();
    throw new Error("error");
    if (tracker.isErrorAny()) {
    throw new Error("Could not load image");
    addMouseListener(new MouseAdapter() {
    public void mousePressed(MouseEvent e) {
    if (point == null)
    point = new Point(0, 0);
    int x = e.getX();
    int y = e.getY();
    System.out.println("X co-ord: " + x + " Y co-ord: " + y);
    // Floor the x and y values to the nearest unit of 25
    x = x - x % square_size;
    y = y - y % square_size;
    point.setLocation(x, y);
    repaint();
    System.out.println(point);
    public void paintComponent(Graphics g) {
    super.paintComponent(g); //paint background
    System.out.println("Chess Board Paint");
    // Loop to produce the black and white squares to represent the board
    for(int jj = 0; jj < 8; jj ++){
    for(int ii = 0; ii < 8; ii++){
    if(ii % 2 == jj % 2)
    g.setColor(Color.white);
    else
    g.setColor(Color.lightGray);
    g.fillRect(ii * square_size, jj * square_size, square_size, square_size );
    // Draw a highlighted square
    if (point != null){
    g.setColor(Color.green);
    g.fillRect( (int)point.getX(), (int)point.getY(), square_size, square_size);
    //imageStrip is the Image object representing the image strip.
    //imageWidth is the size of an individual image in the strip.
    //imageNumber is the number (from 0 to numImages)
    // of the image to paint.
    int stripWidth = image.getWidth(this);
    int stripHeight = image.getHeight(this);
    int imageWidth = stripWidth / 6;
    System.out.println("Width = " + imageWidth);
    g.clipRect(120, 0, imageWidth, stripHeight / 2);
    g.drawImage(image, 0 * imageWidth, 0, this);
    What code do i need to add more pieces to the board? I plan to make a ChessPiece array (8x8) which will holld all the chess pieces on the board. Should I hold this array in the board class to make drawing the pieces easier? Any other tips for game development would also be most welcome.
    Thanks

    cross post, I think.
    http://forum.java.sun.com/thread.jsp?thread=496287&forum=406

  • Full Text display problem in MySQL Text column

    I'm having problems with CF MX 6.1 displaying any output from
    a database when I exceed about 4,500 characters in a MySQL database
    column.
    I'm not doing any funky joins, just a URL variable to select
    the row. I have a "bio" field and when that field exceeds more than
    4500 characters, CF returns nothing from that row at all.
    (including other columns).
    The version of MySQL is 4.0.17, CF is MX 6.1. The same error
    occures in both the CMS I built using InterAKT's DW extensions
    (Nextensio and KTML) and in my basic detail page.
    Any idea's why this is happening? Thanks for the help.
    btw, the site is www.goodstuffpr.com - the client's pages are
    the main culprit, although I've been able to duplicate the problem
    in the news section and press releases as well.
    And the CF code:
    <cfparam name="URL.col_id" default="1">
    <cfquery name="rsClients"
    datasource="goodstu_database">
    SELECT *
    FROM tbl_clients
    WHERE col_id =
    <cfqueryparam value="#URL.col_id#"
    cfsqltype="cf_sql_numeric">
    </cfquery>
    nothing special. the output is:
    <h1><cfoutput>#rsClients.col_name#</cfoutput></h1>
    <p><img
    src="../uploads/images/<cfoutput>#rsClients.col_image#</cfoutput>"
    alt="" class="floatLeft"
    /><cfoutput>#ParagraphFormat(rsClients.col_introText)#</cfoutput></p>
    <h2>Biography</h2>
    <cfoutput>#rsClients.col_bio#</cfoutput>

    What does it show in your ColdFusion Administrator DSN
    advanced settings for BLOB, CLOB, Long Text Buffer (chr), and Blob
    Buffer(bytes)?
    Phil

  • Text display problem in review widgets?

    I've had a problem related to review widget in IBA. A part of the text disappears when exporting the book in .ibooks format. In some cases, only a part of the text is missing, sometimes the entire question or option. However, the text is displayed correctly in IBA.
    I'm using IBA 2.1.1 on OS X 10.9. There are problems in both iBooks for Mac and iPad. IBA and books are in Finnish.
    This is how it looks in IBA: https://www.dropbox.com/s/u8pwgy80x5v0lvl/ibooksauthor_review.png
    And this is how it looks in iBooks (for Mac): https://www.dropbox.com/s/78ozyp2c9820yrx/ibooks_review.png
    Are there any ways to prevent text from disappearing? This issue seems to be related to IBA version 2.1.x.

    However, text is missing if the same books are exported using IBA 2.1.x
    Anyone with a similar issue in this example may want to contact Apple Support to see if it is something on their end or to be laid at the feet of the latest version, I think.
    Global Phone Support
    We have expanded English-language publisher phone support. To make contacting the iBookstore support even easier, new local phone numbers are now available for Australia, France, Germany, Italy, Netherlands, Spain, and the U.K. Support is available Monday to Friday, from 7 a.m. to 5 p.m. (PT).
    Country
    Phone Number
    Australia
    1300 307 504
    Note that this is a low tariff number.
    France
    0805 540 117
    Germany
    0800 664 5307
    Italy
    800 915 902
    Netherlands
    0800 0201 578
    Spain
    900 812 687
    U.K.
    0800 975 0615
    U.S.
    +1 (877) 206-2092
    Toll-free from U.S. and Canada.
    Applications:
    [email protected]

  • ITunes 8 - Windows Vista - Text Display Problem

    Whenever iTunes is running unfocused (i.e., in the background, e.g., behind Mozilla Firefox) and the track changes, the text from the previous song remains there, and the library moves so that the new playing track's text is now over the top of the previous track's text. If left for several tracks it looks a real mess when I go back into iTunes (refocus it), however it only lasts for about 1/2 a second, then the text from the old track's disappears and it goes back to correct view.
    Why is this happening? If iTunes is being used focused, the text doesn't overlap, but even if I'm running a program that doesn't cover the whole screen, e.g., a small readme file, in the background I can see the (unfocused) iTunes window overlapping all of it's text.
    I would upload a picture but I'm not sure it's possible here.
    Thanks,
    Simon.

    The Problem was with SP2 and I have a ticket open with Microsoft.

  • Japanese text input problem.

    I created a small swing application which has a JTextField. I changed my keyboard input to Japanese(Hiragana) and entered some characters(. ,). They are coming as center aligned (But, they are coming as bottom aligned in notepad.). And I could confirm that the ideal alignment of them will be bottom. Could anyone help me?
    Note: I don't see the same problem if I set the font type to MS-Gothic or MS-Mincho. Is that the only option available.

    Sounds like your app is using a Traditional Chinese font because the app is running in a non-Japanese locale. Try running your app in Japanese locale, then it will use the correct font.
    HTH,
    Naoto

  • Japanese text from jsp to pdf using itext

    I am using itext for pdf export in my application.
    It works well for english text.But I have pages in japanese also.
    when i export japanese pages to pdf it shows ??? in pdf files.

    Install Google at your machine, enter the following keywords "java", "pdf" and "api" in that input field, hit the submit button and explore the results.

  • All menus have display problem (flash) when using FF on extended desktop monitor

    I use two monitors at work. Each time I display FF on the "secondary" monitor (extended Desktop), all menus (normal menu, bookmarks, right click), flashes going from visible to hidden and so on).

    I have the same problem. Windows 7 (64 Bit), extended desktop, 2 monitor system. I have AMD HD 4800 graphics card with all AMD updates current as of 12/8/2012.
    The drop down menus display briefly (flicker) and then are not visible. If I am careful and know the dropdown line I want, I can blindly select it. This happens only on the second monitor on the extended desktop. If I move Mozilla to the primary monitor the same page works correctly.
    Disabling the hardware acceleration and restarting Mozilla resolves the issue. While I can use Mozilla, it is still not ready for prime time using hardware acceleration.
    Given that it is the only Browser or applicaiton that has this problem with displaying drop down menus on the second monitor, I would suggest that it is either a Mozilla hardware acceleration problem or Mozilla needs to work with the graphics card manufacturers to resolve a problem that only Mozilla seems to have with their drivers.

  • Month Display problem in OBI using SQL server

    Hi I am using SQL Server and in one of the reports that I am producing the month is displayed as
    CAL_MONTH
    APRIL
    AUGUST
    DECEMBER
    FEBRUARY
    JANUARY
    JULY
    JUNE
    MARCH
    MAY
    NOVEMBER
    OCTOBER
    SEPTEMBER
    instead of
    CAL_MONTH
    JANUARY
    FEBRUARY
    MARCh
    I used the Evaluate function that I used in Cube (ESSBASE) where it worked OK.
    I created a logical column "Sort Order" and used the following expression:
    EVALUATE('Rank( %1.dimension.currentmember,%2.members)' AS INTEGER , "MIC"."MIC_DL"."dbo"."DM_DATE"."CAL_MONTH", "MIC"."MIC_DL"."dbo"."DM_DATE"."CAL_MONTH")
    Then I set the the Sort Order column with the CAL_MONTH column.
    But this is giving me the following error when retrieving thru presentation layer
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 1035 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'Rank', expected 'OVER'.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    SQL Issued: SELECT DM_DATE.CAL_MONTH saw_0 FROM MIC_DL ORDER BY saw_0
    I used the expression Rankover in place of Rank but nothing fruitful.
    Pls. guide.
    Edited by: user10729112 on Aug 24, 2009 7:52 AM

    Could anyone guide on this pls....
    I could create a duplicate column containing the vlaues 1,2 .....for the month and use "Case - When " expression but the table has already been built with Jan, Feb ......
    Pls. help.

  • Currency display problem in Report using WBS Element

    Hi Experts,
    PCS report displying different values aginest same WBS elements, in different currency.
    Report painter tool has been used.
    Requirement is  to display entered currency in the report.
    i.e the currency which is entered in selection screen.
    Regards,
    Oamkar

    Hi Experts,
    PCS report displying different values aginest same WBS elements, in different currency.
    Report painter tool has been used.
    Requirement is  to display entered currency in the report.
    i.e the currency which is entered in selection screen.
    Regards,
    Oamkar

  • Offline preview differs from online display of Japanese text

    I can't figure out why my web site in English and Japanese cannot correctly display the Japanese type when uploaded. The offline preview is fine, but the online version turns the Japanese to gibberish. I have set the charset="UTF-8" in metatags and in the javascript code.
    Thinking that I may have missed a supporting file in the upload, as a test, I downloaded the entire directory and opened the file offline, but it again works fine on my desktop. The same browsers (Safari, Chrome and Firefox) used for online and offline viewing.
    Why won't my Japanese text display online when the offline preview is fine ?

    Have you set the correct charset on your webpage?  If not try to put this within the head tags on your page:
    <meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
    Hope this works.

  • Netscape using plugin doesn't display Japanese characters in a tree node

    Hi,
    I have a problem displaying a swing tree node name in Japanese. The problem only occurs on Netscape browsers. When I run the same applet with Internet Explorer, all the Japanese displays correctly. Now, with Netscape, the node name is displayed in little rectangle characters but the tooltip is displayed in Japanese. I don't believe I have any problem with the Java code because it works with IE.
    I am using the java 1.3.1_01 plugin on a Windows NT machine that has a Japanese OS. I've also installed Japanese versions of Netscape. Also, Netscape is able to display my help files in Japanese correctly, so I am wondering if the problem is with the java plugin.
    Any clues?
    Many thanks

    Found the problem. I set a font type of Arial. It's best to set the type to MS Gothic, or dont' set it at all so the system default font is used.

  • Using plugin to display a text field

    How can I use plugin to display textfield?              

    It's a bit more complicated than you probably would expect: You need to
    load the AcroForm HFT and then execute the JavaScript to create your text
    field via the the AFExecuteThisScript() function.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

Maybe you are looking for

  • F4 Help for Purchase Order field in SRM

    Hello, I am working on developing a report program in SRM in which I have the fields Purchase Order Number, Fund, WBS Element for which I've taken the reference type as crmd_orderadm_h-object_id, BBP_PDACC-FUND, BBP_PDACC-WBS_ELEM_E respectively. I w

  • Cannot see new hard drive in disk utility

    Hi- My original hard drive (less than a year old) when down hard. I bought a new Seagate 160GB SATA drive and I cannot install Tiger (or Panther for that matter) because I have no hard drive recognized in the drive utility. Curiously, I ran Apple bas

  • Return process in bond export

    hi all In the return process when iam doing the delivery with reference to sales order number delivery quantity is not picking up . can any one help me on this issue Regards sridhar

  • While doing MIGO for a material we getting error as?

    Hi, While doing a MIGO for a material we are getting a error as ''special stock o of a vendor doesnot exists" Thanks KK

  • Workshop Weblogic config questions

    I'm using Oracle Workshop for WebLogic 10.3 and I'm hoping someone can answer some setup/config questions. When I double click on the server (WebLogic Server v10.3 at localhost) a window opens with various settings that manage how workshop and weblog