Write Chinese chars to a text file using vbscript

前端 未结 3 1605
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 03:20

I\'m trying to write some Chinese characters to a text file using

Set myFSO = CreateObject(\"Scripting.FileSystemObject\")
Set outputFile = myFSO.OpenTextFile(ge         


        
3条回答
  •  -上瘾入骨i
    2021-01-21 03:47

    Try this:-

    MsgBox "Writing Line"
    On Error Resume Next
    outputFile.WriteLine s '' # Removed ( ) that shouldn't be there.
    MsgBox "Err " & Err.Number & ": " & Err.Description
    On Error GoTo 0
    

    What do you get?

提交回复
热议问题