Platforms to show: All Mac Windows Linux Cross-Platform

CreateStringByAddingPercentEscapesMBS(original as CFStringMBS,charactersToLeaveEscaped as CFStringMBS,legalURLCharactersToBeEscaped as CFStringMBS,encoding as Integer) as CFStringMBS

Type Topic Plugin macOS Windows Linux iOS Targets
global method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Addes percent escapes inside a string.
Example
// escape special characters for use in an URL
Var escaped As CFStringMBS = CreateStringByAddingPercentEscapesMBS(NewCFStringMBS("a b&c=ä"), Nil, NewCFStringMBS("&="), &h08000100)
MessageBox escaped.Str // a%20b%26c%3D%C3%A4

If charactersToLeaveEscaped=nil then no string is changed. If charactersToLeaveEscaped contains an emptry string ("") all escapes are changed and if charactersToLeaveEscaped contains a string<>"" then this characters are not escaped.

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


The biggest plugin in space...