Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67227

Some Shift-JIS characters cannot be correctly processed by Qt.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.3, 5.10.0
    • Core: Locales (i18n)
    • None
    • Latest x64 Windows 10, offical gcc Qt 5.10.0 & Qt 5.6.3 verified. It is probably an old issue and impact other Qt versions.

    Description

      Some characters located in Shift-JIS cannot be correctly read by Qt. When trying to decode them via Shift-JIS encoding in Qt, they're replaced by replacement char 0xfffd.

      They're 1-20 surrounded by a circle. ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳, or Shift-JIS code range [0x8740, 0x8753]. They can also be found in this page.

      http://www.rikai.com/library/kanjitables/kanji_codes.sjis.shtml

      The attached files are a short program to reproduce this issue and text file used by it.

      I've not checked every character in Shift-JIS. But at least these 20 chars cannot be handled by Qt correctly.

      Attachments

        1. am001a.txt
          0.1 kB
        2. shift_jis_issue.cpp
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            farta Li Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes