Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4128108

Frame won't display Japanese in caption on English NT

    XMLWordPrintable

Details

    • x86
    • windows_nt

    Description

      Name: rk38400 Date: 04/11/98


      I'm trying to put Japanese text in a JFrame. The
      steps are the following:

      1. create the JFrame
      2. call setTitle on the JFrame, passing Japanese
      text "\u306b\u307b\u3093\u3054", which contains
      hiragana for "Nihongo"
      3. the text displays as "????" in the JFrame

      I am using a U.S. English NT 4.0 system and have
      installed the MS Gothic font for Japanese support.
      I have also added this font to font.properties. I
      believe I have a valid configuration because I
      can use Japanese text without problems in JMenu,
      JMenuItem, and JLabel using setText.

      I believe that your JFrame is trying to convert
      the Unicode to my system's default codepage (1252)
      before displaying it. This should be incorrect
      behavior.
      (Review ID: 26266)
      ======================================================================
      ###@###.### 10/4/04 16:47 GMT
      As of now, no NT is supported any more but for modern systems it's not a bug. You cannot expect to see ideographics without installing a system pack. Back in NT days, a single font (even properly introduced to Java) was as well not enough for Windows to show decorations.

      Attachments

        Activity

          People

            yan Yuri Nesterenko
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: