-
Notifications
You must be signed in to change notification settings - Fork 114
strip_accents
wpferguson edited this page Jun 14, 2020
·
1 revision
strip_accents
strip accents from characters
local ds = require "lib/dtutils.string"
local result = ds.strip_accents(str)
str - string - the string with characters that need accents removed
strip_accents removes accents from accented characters returning the unaccented character.
result - string - the string containing unaccented characters
Copied from https://forums.coronalabs.com/topic/43048-remove-special-characters-from-string/