본문 바로가기
소프트웨어 개발/classic asp

classic asp utf-8 설정

by 인생은즐겁게 2023. 3. 31.
반응형

 

CodePage에 65001 설정

<%@Language="VBScript" CodePage = 65001 %>

 

사용 예)

<%@Language="VBScript" CodePage = 65001 %>
<!DOCTYPE html>
<html lang="ko">
<head>
  <title>First ASP</title>
  <meta charset="utf-8">
</head>
<body>
<%


    response.write("<h1>Hell The World!</h1>")
    response.write("<p>안녕하세요</p>")

    
%>
</body>
</html>

 

 

 

<%@Language="VBScript" CodePage = 65001 %>
<%Option Explicit%>
<%
Response.CharSet="utf-8"
Session.codepage="65001"
Response.codepage="65001"
Response.ContentType="text/html;charset=utf-8"
%>
<%
Dim names(2)


names(0)="김길동"
names(1)="박길동"
names(2)="이길동"


Response.Write(names(0))
%>
반응형

댓글