ASP 문자 집합 속성


❮ 완전한 응답 객체 참조

Charset 속성은 문자 집합의 이름을 Response 개체의 콘텐츠 유형 헤더에 추가합니다. 기본 문자 집합은 ISO-LATIN-1입니다.

참고: 이 속성은 이름에 대해 유효한 문자 집합인지 여부에 관계없이 모든 문자열을 허용합니다.


통사론

response.Charset(charsetname)

Parameter Description
charsetname A string that specifies a character set for the page

ASP 페이지에 Charset 속성이 설정되어 있지 않으면 content-type 헤더는 다음과 같습니다.

content-type:text/html

Charset 속성을 포함하는 경우:

<%response.Charset="ISO-8859-1"%>

콘텐츠 유형 헤더는 다음과 같습니다.

content-type:text/html; charset=ISO-8859-1

❮ 완전한 응답 객체 참조