TinyMUX

Stripaccents()

Functions

FUNCTION: stripaccents(<string>)

Returns the string with accented Unicode characters converted to their closest non-accented ASCII equivalents. Characters which cannot be approximated are shown with a single ‘?’.

Examples:

> say stripaccents([chr(233)])
You say, "e"
> say stripaccents(caf[chr(233)])
You say, "cafe"

Related Topics: accent(), chr(), ord(), ASCII, UNICODE.