Codepage Property

 Object: XFRequest
 Syntax: objXFRequest.Codepage [=Language Code as Long]
 Type: Long
 Read/Write: Read/Write
 Description: Sets or returns the language of the file(s) or folder(s) being transferred. On Windows NT 4.0 and higher, SoftArtisans XFile is Unicode compliant, enabling the transfer of data between systems, regardless of language, without the risk of data corruption. By setting XFile's Codepage property, you will be able to preserve file names in their original language.

XFile's Codepage property specifies a Unicode language code for correctly storing the file name internally. To display the filename correctly, set the HTML <meta> tag's Charset attribute as well.

SoftArtisans recommends using XFile with SoftArtisans FileUp, which is Unicode compliant.

When client and server share the same language platform, you do not need to set Codepage. For heterogeneous language support, use Codepage 65001 and charset UTF-8 (Unicode).

For a complete list of Codepage values, see Microsoft's Character Set Recognition reference.
 Example: If you are uploading a Japanese file with a Japanese file name, include the following in your XFile request script.

... 
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-2022-jp">
... 
objXFile.Codepage = 50220 '--- Japanese 
      
In the FileUp response script, include,

... 
<!--META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-2022-jp"-->
... 
objFileUp.codepage = 50220 
      

Copyright © 2010 SoftArtisans, Inc. All rights reserved.