/ucengine/src/helpers/unicode_helpers.erl
http://github.com/AF83/ucengine · Erlang · 23 lines · 3 code · 2 blank · 18 comment · 0 complexity · 89a14617ffe9a4417f1c9dbd32eca1a3 MD5 · raw file
- %%
- %% U.C.Engine - Unified Collaboration Engine
- %% Copyright (C) 2011 af83
- %%
- %% This program is free software: you can redistribute it and/or modify
- %% it under the terms of the GNU Affero General Public License as published by
- %% the Free Software Foundation, either version 3 of the License, or
- %% (at your option) any later version.
- %%
- %% This program is distributed in the hope that it will be useful,
- %% but WITHOUT ANY WARRANTY; without even the implied warranty of
- %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- %% GNU Affero General Public License for more details.
- %%
- %% You should have received a copy of the GNU Affero General Public License
- %% along with this program. If not, see <http://www.gnu.org/licenses/>.
- %%
- -module(unicode_helpers).
- -export([normalize_unicode/1]).
- % Convert strange unicode character like e' to é
- normalize_unicode(Input) -> unicode:characters_to_list(binary:list_to_bin(Input), unicode).