Serial port and GPS

OsmDldExcp.getEncoding Method 

Finds the encoding of the web response.

[Visual Basic]
Private Shared Function getEncoding( _
   ByVal aResp As WebResponse _
) As Encoding
[C#]
private static Encoding getEncoding(
   WebResponse aResp
);

Parameters

aResp
the web response

Return Value

Encoding of the web response or encoding for ASCII if not available or on any kind of errors.

Remarks

Searches for the definition of the charset in the content type entry of the web response. If found, it returns an instance of System.Text.Encoding responsible for the character set of the web response.

See Also

OsmDldExcp Class | serial Namespace