OutputCharset Property

Description

This property specifies the output character set for EditLive! for XML and the Visual Designer. The XSL views output by the Visual Designer will be encoded by the Visual Designer using the provided output character set. If no output character set is specified the UTF-8 character set will be used.

Syntax

JavaScript

setOutputCharset(strCharset);

Parameters

strCharset

A string specifying the character set used by the Visual Designer when it outputs the data model and views. There is a wide range of supported character sets. Supported character sets include:

ASCII

American Standard Code for Information Interchange

CP1252

Windows Latin-1

UTF8

Eight-bit Unicode Transformation Format

UTF-16

Sixteen-bit Unicode Transformation Format

ISO2022CN

ISO 2022 CN, Chinese

ISO2022JP

JIS X 0201, 0208 in ISO 2022 form, Japanese

ISO2022KR

ISO 2022 KR, Korean

ISO8859_1

ISO 8859-1, Latin alphabet No. 1

ISO8859_2

ISO 8859-2, Latin alphabet No. 2

ISO8859_3

ISO 8859-3, Latin alphabet No. 3

ISO8859_4

ISO 8859-4, Latin alphabet No. 4

ISO8859_5

ISO 8859-5, Latin/Cyrillic alphabet

ISO8859_6

ISO 8859-6, Latin/Arabic alphabet

ISO8859_7

ISO 8859-7, Latin/Greek alphabet

ISO8859_8

ISO 8859-8, Latin/Hebrew alphabet

ISO8859_9

ISO 8859-9, Latin alphabet No. 5

ISO8859_13

ISO 8859-13, Latin alphabet No. 7

ISO8859_15

ISO 8859-15, Latin alphabet No. 9

SJIS

Shift-JIS, Japanese

A full list of character sets supported by version 1.4.2 of the Java Runtime Environment can be found on the Sun Microsystems Java Web site.

Examples

Example 16.26. OutputCharset Property Example Scripting

The following example specifies that the XSLs should be output using the ASCII character set.

JavaScript

designer.setOutputCharset("ASCII");

Remarks

If no output character set is specified the UTF-8 character set will be used.