[erlang-questions] Downcase Accented characters

Loïc Hoguin <>
Sun Oct 21 21:18:54 CEST 2012


On 10/21/2012 09:14 PM, Roberto Ostinelli wrote:
> Dear list,
>
> I've a binary string which includes accented characters and unicode,
> that i need to downcase.
>
> Is my real best option here to convert everything to list and downcase that?

Your current best option is ux_string:to_lower/1 from the ux library 
which will properly lower all characters, not just A-Z.

Should be at https://github.com/erlang-unicode/ux

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list