Platforms to show: All Mac Windows Linux Cross-Platform

GetEncodingOfStringMBS(s as string) as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method XojoRuntime MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the internal value for the encoding.
Example
dim s as string = "Hello"

MsgBox hex(GetEncodingOfStringMBS(s)) // shows 8000100 for UTF8

Only useful on Xojo 4.5 and newer.
Some example values for encoding:
MacRoman 0Also for ASCII or binary data used.
WindowsLatin1&h0500ANSI codepage 1252
ISOLatin1&h0201ISO 8859-1
NextStepLatin&h0B01NextStep encoding
Unicode &h010016 bit Unicode
UTF8&h080001008 bit Unicode
Invalid&hFFFFFFFF(Binary)
Invalid&hFFFF(Binary)

Renamed from GetStringEncoding to GetEncodingOfString in MBS Plugin 3.1.

Some examples using this global method:

Xojo Developer Magazine

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...