web 2.0

ASP Response.Charset() - Response Object

ASP Response.Charset() - Response Object Gets or sets the HTTP character set of the output stream.

ShotDev Focus:
- The HTTP character set of the output stream.

Charset
.asp
ContentType = “text/asp”
.htm,.html
ContentType = “text/html”
.rtf
ContentType = “application/rtf”
.mpeg,.mpg
ContentType = “video/mpeg”
.mp3
ContentType = “audio/mpeg3″
.wav
ContentType = “audio/wav”
.jpeg,.jpg
ContentType = “image/jpeg”
.gif
ContentType = “image/gif”
.xls
ContentType = “application/vnd.ms-excel”
.zip
ContentType = “application/zip”
.doc
ContentType = “application/msword”
.avi
ContentType = “video/avi”
.asf
ContentType = “video/x-ms-asf”

Example

asp_response_charset.asp


<% Option Explicit %>
<% Response.Charset = "UTF-8"%>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write("ยินดีต้อนรับเข้าสู่ www.ShotDev.Com<br>")
Response.write("本的味觉")
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_response_charset.asp

Screenshot

ASP & Response.Charset()

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.