Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

DecodingFromCP1252MBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS Util Plugin 3.3 Yes Yes Yes Yes No
Function: Decodes a string with ISO 8859 encoding.
Notes:
The source string must be really an CP1252 string!
The string returned is Unicode and you may try NativeString to make a string you can display better.

May return "" on low memory conditions.
Strings and encoding work only perfectly for RB 4.5 or newer.
Added Linux support in v5.1.

Feedback, Comments & Corrections

DecodingFromHexMBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS Util Plugin 3.3 Yes Yes Yes Yes No
Function: Decodes a Hex string to a binary string.
Example:
dim s as String

s=EncodingToHexMBS("Hallo")

MsgBox DecodingFromHexMBS(s)
Notes:
May return "" on low memory conditions.
Added Linux support in v5.1.
The string returned has no defined string encoding, so use DefineEncoding on the result if needed.

Feedback, Comments & Corrections

DecodingFromISO8859MBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS Util Plugin 3.1 Yes Yes Yes Yes No
Function: Decodes a string with ISO 8859 encoding.
Example:
dim s as String

s=EncodingToISO8859MBS("hallo äöü")

MsgBox s

s=DecodingFromISO8859MBS(s)

MsgBox s

s=NativeStringMBS(s)

MsgBox s
Notes:
The source string must be really an ISO 8859-1 string!
The string returned is Unicode and you may try NativeString to make a string you can display better.

May return "" on low memory conditions.
Strings and encoding work only perfectly for RB 4.5 or newer.
Added Linux support in v5.1.

Feedback, Comments & Corrections

EncodingToCP1252MBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS Util Plugin 3.3 Yes Yes Yes Yes No
Function: Returns a string encoded with Codepage 1252.
Notes:
The string is converted to Unicode (if it's not allready Unicode) and than encoded to a CP 1252 string which is returned with encoding set to binary.
(other encodings are available, but currently not in the plugin)

May return "" on low memory conditions.
Strings and encoding work only perfectly for RB 4.5 or newer.
Added Linux support in v5.1.

Feedback, Comments & Corrections

EncodingToHexMBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS Util Plugin 3.3 Yes Yes Yes Yes No
Function: Encodes a binary string to a hex string.
Example:
dim s1 as string = "Hello World"
dim s2 as string = EncodingToHexMBS(s1)

dim t1 as string = "Umlauts äöü"
dim t2 as string = EncodingToHexMBS(t1)

dim u as new UUIDMBS
dim u1 as string = u.ValueString
dim u2 as string = EncodingToHexMBS(u1)

break // see variables in debugger
Notes:
May return "" on low memory conditions.
Added Linux support in v5.1.

Some examples using this method:

Feedback, Comments & Corrections

EncodingToISO8859MBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS Util Plugin 3.1 Yes Yes Yes Yes No
Function: Returns a string encoded with ISO 8859-1.
Example:
dim s as String

s=EncodingToISO8859MBS("hallo äöü")

MsgBox s

s=DecodingFromISO8859MBS(s)

MsgBox s

s=NativeStringMBS(s)

MsgBox s
Notes:
The string is converted to Unicode (if it's not allready Unicode) and than encoded to a ISO 8859-1 string which is returned with encoding set to binary.
(other encodings are available, but currently not in the plugin)

May return "" on low memory conditions.
Strings and encoding work only perfectly for RB 4.5 or newer.
Added Linux support in v5.1.

Feedback, Comments & Corrections

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




Links
MBS FileMaker tutorial videos