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 |
FormField.String, FormField.Name, FormField.FileName, FormField.FilePath, ASPForm.CharSet, FormParser.CharSet, FormField.FileExt, FormField.ContentCharSet
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: info@pstruh.cz