ASP Response Object : Charset Property

The Charset property appends the name of a character set to the content-type header contained in the Response object. There is no checking for correctness, any string is accepted regardless of whether it represents a valid character set or not.
For example:

  <% Response.Charset = "ISO-8859-7" %>
would set the HTTP content-type header to:
  content-type:text/html; charset=ISO-8859-7

If a single page has more than one Response.Charset tag, then each tag will replace the preceding one. Therefore, the character set will be set to the value specified by the last instance of Response.Charset in the page.

Valid character sets are registered with IANA (Internet Assigned Numbers Authority), and you can see their website (http://www.iana.org/) for a complete listing (http://www.iana.org/assignments/character-sets).

See Also:
    ISO 8859
    Unicode


Back to the ASP Response Object
Back to ASP Objects
References:
http://www.devguru.com/
http://msdn.microsoft.com/asp/
http://www.iana.org/

All code is my own (but it likes you a lot *wink* *wink*).

Log in or register to write something here or to contact authors.