CALL KNJ
This page was last modified 03:53, 29 November 2016 by Mars2000you.

Contents

Effect

Returns a Japanese 2-byte (zenkaku) character B$ that corresponds to a JIS code or a Shift-JIS code A$.

Syntax

CALL KNJ(B$,A$)

Parameters

B$ is the character that will be returned by this instruction.

A$ is the JIS or SJIS code (hexadecimal, 4 digits) of the character B$

This code will be treated as
- a JIS code if it is lower than 8000
- a Shift-JIS code if it higher than 7FFF

Example

CALL KNJ(B$,"3441"):PRINT B$

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

CHR$(), CALL JIS, CALL SJIS

Compatibility

Kanji BASIC