zotonic/z_stdlib

Lowercasing of accented characters

Closed this issue · 4 comments

arjan commented

Is this supported?

(zotonic001@n5)4> z_string:to_lower(<<"é">>).
** exception error: no function clause matching z_string:to_lower(<<"é">>,<<>>) (src/z_string.erl, line 258)

Yes, but try:

z_string:to_lower(<<"é"/utf8>>).

Otherwise you might check latin-1.

See also #53

arjan commented

aarghh :-) totally forgot about that ticket.

They should make utf8 the default in the terminal... who uses latin-1 these days??