Print Page | Close Window

Option Explicit error / help

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=13799
Printed Date: 12 April 2026 at 4:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Option Explicit error / help
Posted By: moti
Subject: Option Explicit error / help
Date Posted: 13 February 2005 at 5:12pm
Hi all
 
yesterday I changed my server form Win 2003 to Win 2000 server
every thing was OK but when i ran the forum on every page I get this
error
=====

Microsoft VBScript compilation error '800a0400'

Expected statement

forum/Default.asp, line 2

Option Explicit
 
=====
I don`t know whay But every thing in pages is OK but I get this error
Please help me
I just changed server and never edited any file
the files are ok and there is not any ASP error or wrong coding in those
 
Help please
Thanks



Replies:
Posted By: moti
Date Posted: 13 February 2005 at 8:55pm
I found it
 
I used UTF-8 for pages and when I changed the server I get above error
But I don`t know why because my previouse server before Win 2003 was win 2000 and I never had any problem like this
 
so what I should to do
?
Confused


Posted By: WebWiz-Bruce
Date Posted: 14 February 2005 at 4:39am
Could be a corrupted file, have you tried reuploading the files again.

If this fails, just remove the Option Explicit line


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: moti
Date Posted: 14 February 2005 at 5:19am
Thanks borg
But when I change encoding to ANSI it work
My forum is in Farsi
When I use UTF-8 every thing that it read from Language files is Farsi and show correct but every thing that read from database is not in Farsi and it just show me unknown characters

But when I add this at top of the page

session.codepage=65001

all characters that it read from database will show correct and in Farsi but all of words that read from language file will be corrupted
and even when I change encoding it still show me bad characters
 
What happened ? I think this is some thing in Server and Windows 2000
I even installed Farsi language on server but I have same problem
 
==

 


Posted By: moti
Date Posted: 16 February 2005 at 5:41am
I tested it on a web host and its very good and working fine but on my own server I have above problem
any body knows how can i configure my server to solve above problem?
Please I need it
 
Wink
Thanks 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net