TextEncoding.InternetName

From Xojo Documentation

Revision as of 15:29, 9 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Property (As String )
aTextEncoding.InternetName = newStringValue
or
StringValue = aTextEncoding.InternetName

Supported for all project types and targets.

Internet Text Encoding name, such as UTF-8.

Example

This example gets the internet name of the text encoding in TextArea1.

Dim t As TextEncoding
t = Encoding(TextArea1.Text)
If t <> Nil Then
Dim s As String
s = t.InternetName
MsgBox(s)
End If