ASP Charset ÊôÐÔ

response ¶ÔÏó²Î¿¼ÊÖ²á

Charset ÊôÐÔÏò Response ¶ÔÏóÖÐ content-type Í·²¿×·¼Ó×Ö·û¼¯Ãû³Æ¡£

×¢ÊÍ£º´ËÊôÐԿɽÓÊÜÈκÎ×Ö·û´®£¬²»ÂÛÊÇ·ñΪºÏ·¨µÄ×Ö·û¼¯Ãû³Æ¡£

Óï·¨£º

response.Charset(charsetname)
²ÎÊý ÃèÊö
charsetname ÎªÒ³Ãæ¹æ¶¨×Ö·û¼¯µÄ×Ö·û´®¡£

ʵÀý

Èç¹û ASP Ò³ÃæÃ»ÓÐÉèÖà Charset ÊôÐÔ£¬ÄÇô content-type Í·²¿»áÊÇÕâÑùµÄ£º

content-type:text/html

Èç¹ûÎÒÃÇʹÓÃÁË Charset ÊôÐÔ£º

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

content-type Í·²¿»áÊÇÕâÑùµÄ£º

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

response ¶ÔÏó²Î¿¼ÊÖ²á

VUE