Platforms to show: All Mac Windows Linux Cross-Platform

DecodingFromURLMBS(s as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 2.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decodes a string with URL escaped characters.
Example
dim s as string
dim t as string
dim u as string

t="Hello World äöü"

s= EncodingToURLMBS(t,0)

u=DecodingFromURLMBS(s,0)

SetEncodingOfStringMBS u,GetEncodingOfStringMBS(t) // restore encoding

// Hello World äöü
MsgBox t
// Hello%20World%20%C3%A4%C3%B6%C3%BC
MsgBox s
// Hello World äöü
MsgBox u

Decodes an URL encoded ASCII string. The string returned is marked as a binary string (without encoding). You need to set the encoding to whatever the original was (ISO-9660 or UTF8 for example).

e.g. "Wie%20geht's%3F" -> "Wie geht's?"

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

See also:

DecodingFromURLMBS(s as string, options as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decodes a string with URL escaped characters.
Example
dim s as string
dim t as string
dim u as string

t="Hello World äöü"

s= EncodingToURLMBS(t,1)

u=DecodingFromURLMBS(s,1)

SetEncodingOfStringMBS u,GetEncodingOfStringMBS(t) // restore encoding

// Hello World äöü
MsgBox t
// Hello+World+%C3%A4%C3%B6%C3%BC
MsgBox s
// Hello World äöü
MsgBox u

Decodes an URL encoded ASCII string. The string returned is marked as a binary string (without encoding). You need to set the encoding to whatever the original was (ISO-9660 or UTF8 for example).

e.g. "Wie%20geht's%3F" -> "Wie geht's?"

May return "" on low memory conditions.
Strings and encoding work only perfectly for RB 4.5 or newer.

Pass 1 for the options parameter to get PHP/Perl compatible output (+ instead of spaces and %20 for spaces).
Added Linux support in v5.1.

See also:

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


The biggest plugin in space...