CALL SJIS
This page was last modified 03:44, 29 November 2016 by Mars2000you.

Contents

Effect

Returns the SJIS (Shift-Japanese Industrial Standard) code of the first character in a string A$ with Japanese characters when this character is a 2-byte or zenkaku character.

SJIS is the way imagined by Microsoft for encoding Japanese characters on MSX (MSX-DOS) and PC (MS-DOS) systems.

Syntax

CALL SJIS(B$,A$) or _SJIS(B$,A$)

Parameters

A$ is the string of characters (character constant, variable, array variable or expression)
B$ is the SJIS code (hexadecimal, 4 digits) of the first character in the string A$ when it's a 2-byte character

Example

CALL SJIS(B$,"漢字"):PRINT B$
 8ABF

Hankaku/Zenkaku

In the Japanese language, the following characters are hankaku (1-byte) : English alphabets, numbers, western punctuation, unaccented katakanas and hiraganas, Japanese punctuation, Japanese accents.

In the Zenkaku, 2-byte characters, you find all hiraganas and katakanas, both accented and unaccented, English alphabets, special pictograms like large circles and measurement terms, Greek and Russian fonts, and thousands of kanjis. These are contained in the big Kanji ROM (128kB if JIS1, 256kB if JIS1+JIS2).

Related to

ASC(), CALL KNJ, CALL JIS

Compatibility

Kanji BASIC