Help - Search - Members - Calendar
Full Version: ASP and DW
Weborum Webmaster Forum > Web Page Design > ASP
MIS Nole
DW puts this little snippet on my pages:
CODE
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>


What is this for?
bassrek
The LANGUAGE="VBSCRIPT" is a directive telling IIS that your ASP file will be written in VBScript. If it isn't there, IIS assumes it's going to be VBScript. Your *supposed* to use the directive, but I personally forget about it a lot of times smile.gif The other language available to to ASP out of the box is JScript. You can run others, like PerlScript and Python, with add-ons to IIS.

The codepage setting I've never seen before. Apperantly, it's somewhat like the encoding of an HTML page. Here's the official MS definition:
QUOTE

Used by the system to encode and interpret string characters. Codepage formats are not the same for each language. Some languages, such as Japanese and Hindi, have multibyte characters, while others, such as English and German, need only one byte to represent each character. Each codepage is represented by a unique integer. In Internet Information Services (IIS), the default codepage is the same as CP_ACP. IIS supports Web files that are saved in UTF-8 format or ANSI format.


Here's what codepage 1252 is:
http://www.microsoft.com/globaldev/referen...e/sbcs/1252.htm

I guess like VBScript, it assumes 1252 unless told otherwise.
Joe
didnt read through the entire article but this seems to have an explaination of that code

http://msdn.microsoft.com/library/default....tml/nextgen.asp
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.