GetInternetTextEncoding
From Real Software Documentation
Method
| This method is only available on the OS X platform. For cross-platform development, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform. |
When decoding mail or web pages you would use this function to get the text encoding rather than GetTextEncoding. This function is the inverse of TextEncoding.InternetName. It returns the encoding associated with a standard name for that encoding as used on the Internet.
Syntax
result=GetInternetTextEncoding(InternetEncoding)
| Part | Type | Description |
|---|---|---|
| result | TextEncoding | Text encoding of InternetEncoding. |
| InternetEncoding | String | Internet text. |
Example
// take an encoding and query the internet name
dim s as string = encodings.ISOLatin4.internetName
MsgBox s // shows ISO-8859-4
// query encoding object for this name
dim e as TextEncoding = GetInternetTextEncoding(s)
// and show it:
MsgBox e.internetName
dim s as string = encodings.ISOLatin4.internetName
MsgBox s // shows ISO-8859-4
// query encoding object for this name
dim e as TextEncoding = GetInternetTextEncoding(s)
// and show it:
MsgBox e.internetName
See Also
GetTextEncoding, TextEncoding functions.
