<<

Contents

Search

>>

 

OUTPUT_CHARSET

 

 

Instruction

 

 

Syntax:

OUTPUT_CHARSET = <Character Set>

 

<Character Set> = <STRING-EXPRESSION>

 

Meaning:

Defines the character set used to write a sequential file.

 

When a file that has been opened with OPEN OUTPUT or OPEN EXTEND is written under Java, all output characters are converted into the standard character set of the computer.

 

The instruction OUTPUT_CHARSET can specify a different character set. The available character sets can be found in the Java documentary with the class Charset.

 

The instruction OUTPUT_CHARSET = "" enables the standard character set again.

 

The following standard charsets are available:

 

Charset

 

Description

US-ASCII

Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set

ISO-8859-1

ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1

UTF-8

Eight-bit UCS Transformation Format

UTF-16BE

Sixteen-bit UCS Transformation Format, big-endian byte order

UTF-16LE

Sixteen-bit UCS Transformation Format, little-endian byte order

UTF-16

Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark

 

Parameter:

Character Set

Name of character set

 

Sample:

OUTPUT_CHARSET = "CP850"

OPEN OUTPUT 1,"TEST.DAT" ON ERROR ... END

OUTPUT 1,"Umlaute in OEM charset: ÄÖÜäöü" ON ERROR ... END

CLOSE 1 ON ERROR ... END

 

See also:

OPEN

OUTPUT

INPUT_CHARSET