euc2jis EUC 코드를 JIS 코드로 변환한다
unsigned int euc2jis(unsigned int euc);
euc EUC 코드
JIS 코드
unsigned int euc2jis(unsigned int euc)
{
unsigned int jis;
if ((euc & 0xff00) == 0x8e00)
jis = hankaku2zen(euc & 0xff);
else jis = euc & ~0x8080;
return jis;
}
한편, JIS 코드는 7 비트계 한자 코드이며, JIS 규격에 의해 규정 일본내의 표준 한자 코드(일 것)이다. 특히, 일까· 한자를 포함한 인터넷·메일에는 보통, JIS 코드가 사용되고 (이)라고 있다.