lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Apr 16, 2007, at 00:46, Norman Ramsey wrote:

Does anybody happen to have a mapping (or an algorithm) that will
remove diacritical marks from strings?  I'd like to convert Jérôme to
Jerome and that sort of thing.

Try this:

http://dev.alt.textdrive.com/browser/lu/LUString.lua#L35
http://dev.alt.textdrive.com/browser/lu/LUStringBasicLatin.txt

The map is UTF-8 encoded.