June 2002
Intermediate to advanced
816 pages
28h 12m
English
ContentEncoding
ce = Request.ContentEncoding
Returns an instance of the
Encoding
class (located in the System.Text
namespace), which represents the character encoding of the body of
the current request.
ce
An Object variable of type Encoding.
The example demonstrates how to display the current ContentEncoding to the user:
Sub Page_Load( ) Dim ce As System.Text.Encoding ce = Request.ContentEncoding Message.Text = "Current encoding is: " & ce.EncodingName & "." End Sub
For a request using UTF-8 content encoding, the output of this example would be:
Current encoding is: Unicode (UTF-8).
Read now
Unlock full access