TextEncoding.Equals

From Xojo Documentation

Method

TextEncoding.Equals(otherEncoding as TextEncoding) As Boolean

New in 5.0

Supported for all project types and targets.

Compares the given encoding to the passed encoding. Returns a Boolean.

Example

This example compares the encodings of the contents of two TextAreas.

Var t1 As TextEncoding
Var t2 As TextEncoding
t1 = Encoding(TextArea1.Value)
t2 = Encoding(TextArea3.Value)
Label1.Value = t1.InternetName
Label2.Value = t2.InternetName
If t1.Equals(t2) Then
TextField1.Value = "Equals"
Else
TextField1.Value = "Not equals"
End If