This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.Charset Property

Supported in: ActiveX , Java

Charset used to encode the text data submitted by Image Uploader.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...other params...
iu.addParam("Charset", "UTF-8");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setCharset(value);
value = getImageUploader("ImageUploaderID").getCharset();

Property Value

A string value that represents a charset (see the table 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-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.
windows-1250 Windows Eastern European.
windows-1251 Windows Cyrillic.
windows-1252 Windows Latin-1.
windows-1253 Windows Greek.
windows-1254 Windows Turkish.
windows-1257 Windows Baltic.
KOI8-R KOI-8, Russian.