Platforms to show: All Mac Windows Linux Cross-Platform

Back to TextConverterMBS class.

TextConverterMBS.Canonicalize(name as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method String MBS Util Plugin 19.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Canonicalize an encoding name.
Example
MsgBox TextConverterMBS.Canonicalize("utf-8")
MsgBox TextConverterMBS.Canonicalize("Latin1")

The result is either a canonical encoding name, or name itself.

TextConverterMBS.EncodingNames(Mode as Integer = 0) as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method String MBS Util Plugin 19.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries names of text encodings.
Example
MsgBox Join(TextConverterMBS.EncodingNames(1),EndOfLine)

Mode 0 returns list of text encoding names.
Mode 1 returns list of text encoding names and alternative names separated by comma.
Mode 2 returns list of text encoding names and alternative names.

e.g. "CP1252,MS-ANSI,WINDOWS-1252" in the list for mode 1.

TextConverterMBS.LoadIconvLibrary(path as String, byref Error as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method String MBS Util Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the iconv library.

The TextConverterMBS class uses libiconv for text encoding conversion.
If you explicitly need, you can load the library on start of solution.

MBS Plugin may try to load iconv.dll/dylib/so automatically when first iconv function is called.

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


The biggest plugin in space...