function
Library: Shift JIS (OMFFSJIS)
Import : omffsjis.xmd |
export external string source function reader from value string source input-data
Use sjis.reader
to read its value string source
input-data argument, and return that
data converted from a Shift-JIS encoding to a UTF-8 encoding. That is, the provided source is in Shift-JIS, but
the program sees UTF-8.
The following program uses sjis.reader
to convert #main-input
from UTF-8 to Shift-JIS, and
then send the results to find
rules for further processing.
import "omffsjis.xmd" prefixed by sjis. process using group "process input" submit sjis.reader from #main-input group "process input" ; ...
To use sjis.reader
, you must import OMFFSJIS into your program using an import
declaration such as:
import "omffsjis.xmd" prefixed by sjis.