immobili ASP Charset
proprietà charset aggiunge il nome del set di caratteri per il contenuto-tipo intestazione oggetto Response. Il set di caratteri di default è ISO-LATIN-1.
Nota: Questa proprietà accetta qualsiasi stringa, anche se non un nome di set di caratteri legale.
grammatica
response.Charset(charsetname)
参数 | 描述 |
---|---|
charsetname | 为页面规定字符集的字符串。 |
Esempi
Se la pagina ASP non è impostato attributo charset, Content-Type dell'intestazione sarebbe qualcosa di simile:
content-type:text/html
Se usiamo la proprietà Set di caratteri:
<%response.Charset="ISO-8859-1"%>
Content-Type dell'intestazione sarebbe qualcosa di simile:
content-type:text/html; charset=ISO-8859-1
Risposta completa Object Reference