RemoveAccentsMBS: RemoveAccentsMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
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

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.


💬 Ask a question or report a problem