EditLive! 9 Documentation : setOutputCharset Method

This property specifies the output character set for EditLive!. The output character set defines how the contents of EditLive! are encoded when extracted from the editor (e.g using run-time properties such as the GetDocument).

If no output character set is specified, the output characters will match the specified rendering character set used by the editor. For more information on specifying the rendering character set for EditLive!, see the Specifying Character Sets in the Applet article in the Developer Guide

Syntax

Visual Basic Script
object.OutputCharset = strCharset
ASP.NET
prefix:EditLiveJava OutputCharacterSet = strCharset
JavaScript
editliveInstance.setOutputCharset(strCharset);

Parameters

strCharset

A string specifying the character set used by EditLive! when it outputs characters. 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 website.

Examples

The following example specifies that the characters used in EditLive! should be output using the UTF-8 character set.

VBScript
editlive1.OutputCharset = "UTF-8"
ASP.NET Server Control
<elj:EditLiveJava
  ...
  OutputCharacterSet = "UTF-8"
  ...
/>
JavaScript
elinstance.setOutputCharset("UTF-8");

Remarks

The ASCII character set will be used if no output character set is specified.