Chinese Character in FSO

Discussion in 'General troubleshooting' started by dailynet, Aug 10, 2011.

  1. when we write some chinese character
    in the plain file using Asp file system oblect
    object ,it doesn't work and give us
    errors as follows:
    Microsoft VBScript runtime error '800a0005'
    Invalid procedure call or argument
    E:\WEB\VIDAILYN\SYSADMIN\INCLUDE\../../Include/Cls_FileSys.asp, line 98

    any suggestion for that?

    Thank you so much
     
  2. FredC

    FredC Winhost Staff

    can you post line 98?
     
  3. in line 98 , there is write statement
    FileTemp.WriteLine( FileType )

    Public Sub Create_File(ByVal File_Name,ByVal FileType)
    If Not FsTrue Then Exit Sub
    Dim FileTemp,FilePath
    FilePath=Server.Mappath(File_Name)
    Set FileTemp=FileOs.CreateTextFile(FilePath,True)
    FileTemp.WriteLine( FileType )
    FileTemp.Close
    Set FileTemp=Nothing
    End Sub

    any suggestions?
     

Share This Page