# Shift-JIS

Shift-JIS (SJIS) is a Codage of characters for the Japanese language, developed by Microsoft. As its name indicates it, it is based on the encoding ISO-2022-JP (JIS), but with a number more important of bytes allowing the use of 64 Katakana between the codes Hexadécimal 0xA0 and 0xDF.

Contrary to JIS, Shift-JIS a medium of 8 Bit S for the transmission requires. However, vis-a-vis the format 8 bits EUC, Shift-JIS guarantees only that the first byte will be most of the code ASCII; the value of the second byte can then be unspecified. This makes difficult a sure detection of this coding.

For a code JIS of two bytes $j_1 j_2$, the transformation towards the code Shift-JIS correspondents $s_1 s_2$ is:

$33 \ the j_1 \ the 96 \ Rightarrow s_1 = \ frac \left\{j_1 + 1\right\} \left\{2\right\} + 112$

$97 \ the j_1 \ the 126 \ Rightarrow s_1 = \ frac \left\{j_1 + 1\right\} \left\{2\right\} + 176$
$j_1 \ mbox \left\{is odd\right\} \ Rightarrow s_2 = j_2 + 31 + \ operatorname \left\{trunc\right\} \ left \left(\ frac \left\{j_2\right\} \left\{95\right\} \ right\right)$
$j_1 \ mbox \left\{is even\right\} \ Rightarrow s_2 = j_2 + 126$

Shift-JIS is used primarily in the Japanese Web pages, but, generally, the formats ISO-2022-JP and Unicode (and more particularly in its representation UTF-8) are preferable.

## See too

### External bonds

• Ping : Coding of Japanese texts (in)

 Random links: Andre Kaspi | Nissa bleated it | Valorous Inhabitant of Li2ege | Carmiano | Jill Scott | Ornithine