A
Agoston Bejo
I am generating WML pages from ASP.
I have header.inc that looks like this:
----------------------------------------------
<%@Language=VBScript%><%
Option Explicit
Response.Buffer = True
Response.ContentType = "text/vnd.wap.wml;charset=UTF-8"
%>
[...]
----------------------------------------------
All ASP pages on the site start by including this file.
In index.asp it works, in another ASP it doesn't, and I get the "statement
expected" error.
I did some messing with the encoding of the files, I saved them in UTF-8
(65001)encoding in Visual Studio, then tried to save them again with Windows
Western European (1252) when I found out that this was neccessary. Can this
cause a problem in the server side script? I don't think so, but I cannot
imagine any other reasons why the same sequence of statements work in one
file and don't work in another.
I have header.inc that looks like this:
----------------------------------------------
<%@Language=VBScript%><%
Option Explicit
Response.Buffer = True
Response.ContentType = "text/vnd.wap.wml;charset=UTF-8"
%>
[...]
----------------------------------------------
All ASP pages on the site start by including this file.
In index.asp it works, in another ASP it doesn't, and I get the "statement
expected" error.
I did some messing with the encoding of the files, I saved them in UTF-8
(65001)encoding in Visual Studio, then tried to save them again with Windows
Western European (1252) when I found out that this was neccessary. Can this
cause a problem in the server side script? I don't think so, but I cannot
imagine any other reasons why the same sequence of statements work in one
file and don't work in another.