TextEncoding.InternetName

From Xojo Documentation

Revision as of 15:11, 9 February 2022 by Gperlman (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As String )
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.

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