hi folks
i am reading a text file in Hebrew, via FSO (code below).
but its coming out in ???? instead of the actual Hebrew text.
i have tried playing around with server.htmlEncode, but it doesnt seem to help. i also have the correct codePage set.
any ideas what can be done?
thanks!
Sn
code;
------------------------------------------------------------ ------
Set FS=Server.CreateObject("Scripting.FileSystemObject")
Set RS=FS.OpenTextFile(Server.MapPath("../../database/whatsnew.t xt"), 1,False)
fcount=RS.ReadLine
RS.Close
------------------------------------------------------------ ---
Function IncludeFile(FilePath)
Set FSO = server.createobject("scripting.filesystemobject")
Set Include = FSO.opentextfile(FilePath)
While not Include.atendofstream
LineInput = Include.Readline
if left(LineInput,2) = "<" & "%" then LineInput = right(LineInput,len(LineInput) - 2)
if right(LineInput,2) = "%" & ">" then LineInput = left(LineInput,len(LineInput) - 2)
Execute(LineInput)
Wend
End Function