CharSet Property of FormField class

Property | Member of  ScriptUtils.FormField | Changes | Purchase | Download


String or numeric (ConvertCodePages) expression that describes the character set used for the request data. If no value is supplied, source form string data are interpreted using ANSI codepage.


vCharSet = FormField.CharSet
FormField.CharSet = vCharSet


ConvertCodePages - Specifies the CodePage/Charset to
-convert between binary data and String data with ByteArray class
-accept source form data with ASPForm or FormParser


You can handle each of the form field in its special character set. Although - I think you never use such thing in multipart/form-data :-)
multipart/related fields has its own charset property (see ContentCharSet property). CharSet is set to ContentCharSet value if charset field header attribute is specified.


Field CharSets - handle form fields in different code pages

Dim Form, W1250, WISO

'Create formparser object
Set Form = CreateObject("ScriptUtils.FormParser")
Form.FormType = 2

'Process block of data with two fields.
Form.ProcessBlock "W1250=some1250chars-&WISO=and8859-2-"

'Handle first field as Windows-1250 char set
Set W1250 = Form.Items("W1250")
W1250.CharSet = "Windows-1250"
Wscript.Echo W1250.Value

'Handle first field as iso-8859-2 char set
'You will get the same characters at output
Set WISO = Form.Items("WISO")
WISO.CharSet = "iso-8859-2"
Wscript.Echo WISO.Value

See also

FormField.String, FormField.Name, FormField.FileName, FormField.FilePath, ASPForm.CharSet, FormParser.CharSet, FormField.FileExt, FormField.ContentCharSet

Other links for CharSet

Methods of FormField class

ContentCharSet, Save, SaveAs

Properties of FormField class

ByteArray, ContentDisposition, ContentTransferEncoding, ContentType, FileExt, FileName, FilePath, Header, Headers, HexString, CharSet, Index, InProgress, IsFile, Length, Name, RAWHeader, SourceLength, String, Value


One form field. Member of FormFields collection.


Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 4GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance . The software has also a free version of asp upload with progress, called Pure asp upload , written in plain VBS, without components (so you do not need to install anything on server). This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files , works with binary data , you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.

© 1996 - 2011 Antonin Foller, Motobit Software | About, Contacts | e-mail:

Other Motobit links:   IISTracer, real-time IIS monitor   ASP file upload - upload files to ASP. 
ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object