Gets or sets a charset used to encode the text data submitted by Image Uploader.

Syntax

PHP

public function getCharset() {
}

public function setCharset($value) {
}

Property Value

Type: string

The charset. See possible values in the Remarks section.

Default value is "UTF-8".

Remarks

The table below contains some supported charsets. Visit Sun site for a full list of supported encodings.

CharsetDescription
US-ASCIISeven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.
ISO-8859-1ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.
UTF-8Eight-bit UCS Transformation Format.
UTF-16BESixteen-bit UCS Transformation Format, big-endian byte order.
UTF-16LESixteen-bit UCS Transformation Format, little-endian byte order.
UTF-16Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark.
windows-1250Windows East European.
windows-1251Windows Cyrillic.
windows-1252Windows Latin-1.
windows-1253Windows Greek.
windows-1254Windows Turkish.
windows-1257Windows Baltic.
KOI8-RKOI-8, Russian.