CharSet

          Property 
          Member of  ScriptUtils.FormField 

Description
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.
Syntax
vCharSet = FormField.CharSet
FormField.CharSet = vCharSet
Returns
ConvertCodePages - Specifies the CodePage/Charset to
-convert between binary data and String data with ByteArray class
-accept source form data with ASPForm or FormParser
Remarks
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.
Examples
 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
  Other links for CharSet
Methods of FormField class
One form field. Member of FormFields collection.
      Easy to use, hi-performance ASP file upload component with progress bar indicator. Let's you upload multiple files with size up to 2GB to a disk or database along with another form fields. Works with large posts, any character set (including unicode utf-8). Contains one-click multiple files/folders download with on-the-fly compression (Using BinaryWrite/BinaryRead).
      Hi-performance text file logging for ASP/VBScript/VBA applications. Lets you create daily/weekly/monthly log files with variable number of logged values and extra timing and performance info.
       Lets you work with safearray binary data in VBS/JS. It also enables conversion between binary and String data using several code pages. ZLib compress and uncompress functions. Lets you transfer files using compressed stream from a client to server using IE.
      This library also enables calling of some Kernel and Advapi functions (performance, timing, sleep, configuration ...) and enables native work with INI files.


© 1996 – 2005 Motobit Software, help{at}pstruh.cz, help v. 2.16.14