ערכתי לאחרונה בתאריך 10.02.04 בשעה 22:38 בברכה, admin2000
כאשר אני מבצע התחברות לאתר שלי אני כותב לקובץ LOG בעזרת הפקודות הבאות:
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject") Set MyTextFile=MyFileObject.OpenTextFile("log.txt", 8, TRUE, -2) MyTextFile.WriteLine("<tr><td>" & Request("Username") & "</td><td>" & FormatDateTime(Date, 1) & "</td><td>" & FormatDateTime(Time + CInt(2) / 24, 3) & "</td><td>" & (Request.ServerVariables("remote_addr")) & "</td></tr>") MyTextFile.Close
|
כאשר הערך של השדה Username באנגלית או מספרים אין בעיה, אך כאשר אני מכניס עברית אני מקבל שגיאה:
Invaild procedure call or argument
|
- כאשר השגיאה אומרת שהבעיה בשורה הזו:
MyTextFile.WriteLine("<tr><td>" & Request("Username") & "</td><td>" & FormatDateTime(Date, 1) & "</td><td>" & FormatDateTime(Time + CInt(2) / 24, 3) & "</td><td>" & (Request.ServerVariables("remote_addr")) & "</td></tr>")
|
הערה: הדף שלי מוגדר לעברית:
<%@ Language=VBScript codepage=1255%>
|
האם יש דרך להכריח את הדף לקבל עיברית?
יש פקודה להכנסת פונט במקרה כזה??
תודה רבה
