{
  "id": "enwiki-001362628475",
  "slug": "shift-jis",
  "title": "Shift JIS",
  "qid": "",
  "lead": "Shift JIS (also SJIS, MIME name Shift_JIS, known as PCK in Solaris contexts) is a character encoding for the Japanese language, originally developed by the Japanese company ASCII Corporation in conjunction with Microsoft and standardized as JIS X 0208 Appendix 1. Shift JIS is based on character sets defined within JIS standards (for the single-byte characters) and (for the double-byte characters). , 0.05% of surveyed web pages used Shift JIS (actually decoded as its superset Windows-31J encoding), a decline from 1.3% in July 2014. Shift JIS is the third-most declared character encoding for Japanese websites (though in effect it means its superset Windows-31J is used, so it is third-most popular), declared by 1.0% of sites in the .jp domain, while UTF-8 is used by 99.1% of Japanese websites. Shift JIS is also sometimes used in QR codes, though UTF-8 is often preferred.",
  "body": "Shift JIS (also SJIS, MIME name Shift_JIS, known as PCK in Solaris contexts) is a character encoding for the Japanese language, originally developed by the Japanese company ASCII Corporation in conjunction with Microsoft and standardized as JIS X 0208 Appendix 1. Shift JIS is based on character sets defined within JIS standards (for the single-byte characters) and (for the double-byte characters). , 0.05% of surveyed web pages used Shift JIS (actually decoded as its superset Windows-31J encoding), a decline from 1.3% in July 2014. Shift JIS is the third-most declared character encoding for Japanese websites (though in effect it means its superset Windows-31J is used, so it is third-most popular), declared by 1.0% of sites in the .jp domain, while UTF-8 is used by 99.1% of Japanese websites. Shift JIS is also sometimes used in QR codes, though UTF-8 is often preferred. s_1 = \\begin{cases} \\left \\lfloor \\frac{j_1 + 1}{2} \\right \\rfloor + 112 & \\mbox{if } 33 \\le j_1 \\le 94 \\\\ \\left \\lfloor \\frac{j_1 + 1}{2} \\right \\rfloor + 176 & \\mbox{if } 95 \\le j_1 \\le 126 \\end{cases} s_2 = \\begin{cases} j_2 + 31 + \\left \\lfloor \\frac{j_2}{96} \\right \\rfloor & \\mbox{if } j_1 \\mbox{ is odd }\\\\ j_2 + 126 & \\mbox{if } j_1 \\mbox{ is even } \\end{cases} The competing 8-bit format EUC-JP, which does not support single-byte halfwidth katakana, allows for a cleaner and more direct conversion to and from JIS X 0208 code points, as all high-bit-set bytes are parts of a double-byte character and all codes from ASCII range represent single-byte characters. s_1 = \\begin{cases} \\left \\lfloor \\frac{k + 257}{2} \\right \\rfloor & \\mbox{if } m = 1 \\mbox{ and } 1 \\le k \\le 62 \\\\ \\left \\lfloor \\frac{k + 385}{2} \\right \\rfloor & \\mbox{if } m = 1 \\mbox{ and } 63 \\le k \\le 94 \\\\ \\left \\lfloor \\frac{k + 479}{2} \\right \\rfloor - \\left \\lfloor \\frac{k}{8} \\right \\rfloor \\times 3 & \\mbox{if } m = 2 \\mbox{ and } k \\in \\left\\{1, 3, 4, 5, 8, 12, 13, 14, 15\\right\\} \\\\ \\left \\lfloor \\frac{k + 411}{2} \\right \\rfloor & \\mbox{if } m = 2 \\mbox{ and } 78 \\le k \\le 94 \\end{cases} s_2 = \\begin{cases} t + 63 & \\mbox{if } k \\mbox{ is odd and } 1 \\le t \\le 63 \\\\ t + 64 & \\mbox{if } k \\mbox{ is odd and } 64 \\le t \\le 94 \\\\ t + 158 & \\mbox{if } k \\mbox{ is even } \\end{cases} In the above, s_1 s_2 is a two-byte Shift_JIS-2004 sequence, m is the number (1 or 2), k is the number (1-94) and t is the number (1-94). The ku and ten numbers are equivalent to j_1 - 32 and j_2 - 32 respectively, where j_1 j_2 is a two-byte JIS sequence referencing a given plane. The same set of characters can be represented by EUC-JIS-2004, the EUC-JP based counterpart. Some of the additions collide with popular Shift JIS extensions, including Windows codepage 932 which is used in web standards (see above). For example, compare plane 1 row 89 in (beginning 硃, 硎, 硏...) to row 89 in the JIS X 0208 variant defined in web standards (beginning 纊, 褜, 鍈...). In addition, some of the characters map to Unicode characters beyond the BMP. ibm-942 (sjis78) ibm-943 (contains the \\u00A5 ↔ \\x5C mapping) Shift JIS (contains the \\u005C ↔ \\x5C mapping)",
  "categories": [
    "111591533",
    "125973100",
    "22985424",
    "23603337",
    "23617849",
    "24685377",
    "26220375",
    "32509203",
    "55678125"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1362628475",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1783226263.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001362628475",
    "type": "webpage",
    "title": "Shift JIS",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/shift-jis",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001362628475",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1362628475",
    "note": "Immutable snapshot enwiki-001362628475"
  }
}