Platforms to show: All Mac Windows Linux Cross-Platform

RemoveAccentsMBS(text as string, IgnoreCase as boolean = false) as string
Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 12.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Removes accents from text.
Example:

dim s as string = "L'élève préféré"
dim a as string = RemoveAccentsMBS(s)
dim b as string = RemoveAccentsMBS(s, true)
// check values in debugger
Dim x As String = RemoveAccentsMBS("` ‘ ’ • \¶ ¨ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ ¼ ½ ¾ ⅓ ⅔ ⅕ ⅖ ⅗ ⅘ ⅙ ⅚ ⅐ ⅛ ⅜ ⅝ ⅞ ⅑ ⅒ ↉")

Break
Notes:
Optionally also ignores case and outputs text in capital letters.
The plugin has a long replacement list of unicode code points to do this.

Useful as a preparation to convert to ASCII text, so all accents are removed before conversion.

Blog Entries

Xojo Developer Magazine

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

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat