Codepage Property
This property determines the codepage in which
the request will be treated. Set this property if you use specific languages
(for example, Japanese, Hindi, etc.) or the codepage of the HTML-form data differs
from the server's one.
The default value is 0, that means the system codepage.
Value Type: | Long | |
Parameters: | None |
Usage example:
' For proper work of this example you should create two separate files. ' In the first file implement ASP's commands intended for work with uploaded elements and files ' (the first piece of the example's code, "filename.asp"). ' In the second file HTML-form should be implemented (the second piece of the code, "filename.htm"). ' This sample writes the content of the last file in the collection. ' "filename.asp" <%@ CODEPAGE = 1252 %> <% Response.CharSet = "windows-1252" %> <% Set Uploader = Server.CreateObject("MailBee.Uploader") Uploader.Codepage = 1252 Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes) If (Uploader.FormFiles.Count <> 0) Then Set Element = Uploader.FormElements(Uploader.FormElements.Count) Response.Write Element.Value End If %> ' "filename.htm" <form action="filename.asp" method="post" enctype="multipart/form-data"> <input type=file name=file1> <input type=file name=file2> <input type=text name=field> <input type=submit> </form>
See Also:
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.