Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Option Explicit  error / help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Option Explicit error / help

 Post Reply Post Reply
Author
moti View Drop Down
Groupie
Groupie


Joined: 07 September 2004
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote moti Quote  Post ReplyReply Direct Link To This Post Topic: Option Explicit error / help
    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
Back to Top
moti View Drop Down
Groupie
Groupie


Joined: 07 September 2004
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote moti Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
moti View Drop Down
Groupie
Groupie


Joined: 07 September 2004
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote moti Quote  Post ReplyReply Direct Link To This Post 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
 
==

 
Back to Top
moti View Drop Down
Groupie
Groupie


Joined: 07 September 2004
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote moti Quote  Post ReplyReply Direct Link To This Post 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 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.