<s>
Shift	O
JIS	O
(	O
Shift	O
Japanese	O
Industrial	O
Standards	O
,	O
also	O
SJIS	O
,	O
MIME	B-Protocol
name	O
Shift_JIS	O
,	O
known	O
as	O
PCK	O
in	O
Solaris	B-Application
contexts	O
)	O
is	O
a	O
character	B-General_Concept
encoding	I-General_Concept
for	O
the	O
Japanese	O
language	O
,	O
originally	O
developed	O
by	O
a	O
Japanese	O
company	O
called	O
ASCII	B-Protocol
Corporation	O
in	O
conjunction	O
with	O
Microsoft	O
and	O
standardized	O
as	O
JIS	O
X	O
0208	O
Appendix	O
1	O
.	O
,	O
0.2	O
%	O
of	O
all	O
web	O
pages	O
used	O
Shift	O
JIS	O
,	O
a	O
decline	O
from	O
1.3	O
%	O
in	O
July	O
2014	O
.	O
</s>
<s>
Shift	O
JIS	O
is	O
the	O
second-most	O
popular	O
character	B-General_Concept
encoding	I-General_Concept
for	O
Japanese	O
websites	O
,	O
used	O
by	O
5.8	O
%	O
of	O
sites	O
in	O
the	O
.jp	O
domain	O
.	O
</s>
<s>
Shift	O
JIS	O
is	O
based	O
on	O
character	B-General_Concept
sets	I-General_Concept
defined	O
within	O
JIS	O
standards	O
(	O
for	O
the	O
single-byte	O
characters	O
)	O
and	O
(	O
for	O
the	O
double-byte	O
characters	O
)	O
.	O
</s>
<s>
The	O
single-byte	O
characters	O
0x00	O
to	O
0x7F	O
match	O
the	O
ASCII	B-Protocol
encoding	O
,	O
except	O
for	O
a	O
yen	O
sign	O
(	O
U+00A5	O
)	O
at	O
0x5C	O
and	O
an	O
overline	O
(	O
U+203E	O
)	O
at	O
0x7E	O
in	O
place	O
of	O
the	O
ASCII	B-Protocol
character	I-Protocol
set	I-Protocol
's	O
backslash	O
and	O
tilde	O
respectively	O
.	O
</s>
<s>
HTML	O
written	O
in	O
Shift	O
JIS	O
can	O
still	O
be	O
interpreted	O
to	O
some	O
extent	O
when	O
incorrectly	O
tagged	O
as	O
ASCII	B-Protocol
,	O
and	O
when	O
the	O
charset	B-General_Concept
tag	O
is	O
in	O
the	O
top	O
of	O
the	O
document	O
itself	O
,	O
since	O
the	O
important	O
start	O
and	O
end	O
of	O
HTML	O
tags	O
and	O
fields	O
,	O
<, >	O
,	O
/	O
,	O
"	O
,	O
&	O
,	O
;	O
are	O
coded	O
by	O
the	O
same	O
single	O
bytes	O
as	O
in	O
ASCII	B-Protocol
,	O
and	O
those	O
bytes	O
wo	O
n't	O
appear	O
in	O
two-byte	O
sequences	O
.	O
</s>
<s>
Shift	O
JIS	O
is	O
possible	O
to	O
use	O
in	O
string	B-Language
literals	I-Language
in	O
programming	O
languages	O
such	O
as	O
C	B-Language
,	O
but	O
a	O
few	O
things	O
must	O
be	O
taken	O
into	O
consideration	O
.	O
</s>
<s>
Firstly	O
,	O
that	O
the	O
escape	B-Algorithm
character	I-Algorithm
0x5C	O
,	O
normally	O
backslash	O
,	O
is	O
the	O
half-width	O
yen	O
sign	O
( ¥	O
)	O
in	O
Shift	O
JIS	O
.	O
</s>
<s>
It	O
is	O
fully	O
backwards	B-General_Concept
compatible	I-General_Concept
with	O
the	O
legacy	O
single-byte	O
encoding	O
,	O
meaning	O
it	O
supports	O
half-width	O
katakana	O
and	O
that	O
any	O
valid	O
string	O
is	O
also	O
a	O
valid	O
Shift	O
JIS	O
string	O
.	O
</s>
<s>
Appearance	O
of	O
byte	O
values	O
0x40	O
–	O
0x7E	O
as	O
second	O
bytes	O
of	O
code	O
words	O
makes	O
reliable	O
Shift	O
JIS	O
detection	O
difficult	O
,	O
because	O
same	O
codes	O
are	O
used	O
for	O
ASCII	B-Protocol
characters	I-Protocol
.	O
</s>
<s>
On	O
the	O
other	O
hand	O
,	O
the	O
competing	O
8-bit	O
format	O
EUC-JP	O
,	O
which	O
does	O
not	O
support	O
single-byte	O
halfwidth	O
katakana	O
,	O
allows	O
for	O
a	O
much	O
cleaner	O
and	O
direct	O
conversion	O
to	O
and	O
from	O
JIS	O
X	O
0208	O
code	O
points	O
,	O
as	O
all	O
high	O
bit	O
set	O
bytes	O
are	O
parts	O
of	O
a	O
double-byte	O
character	O
and	O
all	O
codes	O
from	O
ASCII	B-Protocol
range	O
represent	O
single-byte	O
characters	O
.	O
</s>
<s>
UTF-8-encoded	O
Unicode	O
is	O
backwards	B-General_Concept
compatible	I-General_Concept
with	O
ASCII	B-Protocol
also	O
for	O
0x5C	O
,	O
and	O
does	O
not	O
have	O
the	O
string	O
search	O
problem	O
.	O
</s>
<s>
Windows-31J	O
assigns	O
0x5C	O
to	O
U+005C	O
REVERSE	O
SOLIDUS	O
(	O
the	O
backslash	O
)	O
,	O
and	O
0x7E	O
to	O
U+007E	O
TILDE	O
,	O
following	O
US-ASCII	B-Protocol
.	O
</s>
<s>
Windows	O
codepage	O
932	O
is	O
the	O
version	O
used	O
in	O
the	O
W3C/WHATWG	O
encoding	O
standard	O
used	O
by	O
HTML5	B-Application
,	O
which	O
includes	O
the	O
"	O
formerly	O
proprietary	O
extensions	O
from	O
IBM	O
and	O
NEC	O
"	O
from	O
Windows-31J	O
in	O
its	O
table	O
for	O
JIS	O
X	O
0208	O
,	O
and	O
also	O
treats	O
the	O
label	O
"	O
shift_jis	O
"	O
interchangeably	O
with	O
"	O
windows-31j	O
"	O
with	O
the	O
intent	O
of	O
being	O
"	O
compatible	O
with	O
deployed	O
content	O
"	O
.	O
</s>
<s>
The	O
version	O
of	O
Shift-JIS	O
originating	O
from	O
the	O
classic	B-Application
Mac	I-Application
OS	I-Application
(	O
known	O
as	O
x-mac-japanese	O
,	O
Code	O
page	O
10001	O
or	O
MacJapanese	B-Operating_System
)	O
assigned	O
the	O
tilde	O
to	O
0x7E	O
(	O
following	O
US-ASCII	B-Protocol
,	O
not	O
which	O
assigns	O
the	O
overline	O
here	O
)	O
,	O
but	O
the	O
Yen	O
sign	O
to	O
0x5C	O
(	O
as	O
in	O
and	O
standard	O
)	O
.	O
</s>
<s>
It	O
also	O
extended	B-Protocol
by	O
assigning	O
the	O
backslash	O
to	O
0x80	O
(	O
corresponding	O
to	O
0x5C	O
in	O
US-ASCII	B-Protocol
)	O
,	O
the	O
non-breaking	O
space	O
to	O
0xA0	O
,	O
the	O
copyright	O
sign	O
to	O
0xFD	O
,	O
the	O
trademark	O
symbol	O
to	O
0xFE	O
and	O
the	O
half-width	O
horizontal	O
ellipsis	O
to	O
0xFF	O
.	O
</s>
<s>
It	O
also	O
added	O
extended	B-Protocol
double	O
byte	O
characters	O
;	O
including	O
53	O
vertical	O
presentation	O
forms	O
in	O
the	O
range	O
0xEB410xED96	O
,	O
at	O
84	O
JIS	O
rows	O
down	O
from	O
their	O
canonical	O
forms	O
,	O
and	O
260	O
special	O
characters	O
in	O
the	O
Shift_JIS	O
range	O
0x85400x886D	O
.	O
</s>
<s>
This	O
variant	O
was	O
introduced	O
in	O
KanjiTalk	B-Operating_System
version	O
7	O
.	O
</s>
<s>
However	O
,	O
certain	O
Mac	B-Application
OS	I-Application
typefaces	O
used	O
other	O
variants	O
.	O
</s>
<s>
Sai	O
Mincho	O
and	O
Chu	O
Gothic	O
use	O
a	O
"	O
PostScript	B-Language
"	O
variant	O
of	O
MacJapanese	B-Operating_System
,	O
which	O
included	O
additional	O
vertical	O
presentation	O
forms	O
and	O
a	O
different	O
set	O
of	O
extended	B-Protocol
special	O
characters	O
,	O
based	O
on	O
the	O
NEC	O
special	O
characters	O
,	O
some	O
of	O
which	O
were	O
only	O
available	O
in	O
the	O
printer	O
versions	O
of	O
the	O
fonts	O
.	O
</s>
<s>
The	O
typical	O
variant	O
used	O
with	O
KanjiTalk	B-Operating_System
version	O
6	O
placed	O
the	O
vertical	O
presentation	O
forms	O
10	O
rows	O
down	O
,	O
and	O
also	O
used	O
the	O
NEC	O
extension	O
layout	O
for	O
row	O
13	O
.	O
</s>
<s>
The	O
newer	O
JIS	O
X	O
0213	O
standard	O
defines	O
an	O
extended	B-Protocol
variant	O
of	O
Shift_JIS	O
referred	O
to	O
as	O
Shift_JISx0213	O
(	O
in	O
a	O
previous	O
version	O
of	O
the	O
standard	O
)	O
or	O
Shift_JIS-2004	O
.	O
</s>
<s>
The	O
space	O
with	O
lead	O
bytes	O
0xF5	O
to	O
0xF9	O
(	O
beyond	O
the	O
region	O
used	O
for	O
JIS	O
X	O
0208	O
)	O
is	O
used	O
by	O
Japanese	O
mobile	O
phone	O
operators	O
for	O
pictographs	B-Application
for	O
use	O
in	O
E-mail	O
.	O
</s>
<s>
A	O
variant	O
is	O
the	O
one	O
that	O
must	O
be	O
used	O
if	O
wanting	O
to	O
encode	O
Shift	O
JIS	O
in	O
source	O
code	O
strings	O
of	O
C	B-Language
and	O
similar	O
programming	O
languages	O
.	O
</s>
<s>
This	O
variant	O
doubles	O
the	O
byte	O
0x5C	O
if	O
it	O
appears	O
as	O
second	O
byte	O
of	O
a	O
two-byte	O
character	O
,	O
but	O
not	O
if	O
it	O
appears	O
as	O
a	O
single	O
"	O
¥	O
"	O
(	O
ASCII	B-Protocol
:	O
"	O
\	O
 "	O
)	O
character	O
,	O
because	O
0x5C	O
is	O
the	O
beginning	O
of	O
an	O
escape	O
sequence	O
.	O
</s>
