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

Chinese characters in RTF are not decoded

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 6u18
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      The keyword "fcharset" in RTF files are ignored. The result is that Chinese
      characters are garbage. The follow RTF document (also attached) should
      show 3 Chinese characters. All editors show it. But Java 5 and 6 shows
      garbage characters.

       
      {\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset136 Arial Unicode MS;}{\f1\fnil\fcharset0 MS Shell Dlg 2;}}

      {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\f0\fs21\'e0\'f8\'b9\'ae\'e0\'f0\f1\fs17\par

      }

      RTF is important for Java because it is the default clipborad format under windows.
      test case has been added.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tyao Ting-Yun Ingrid Yao (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: