CCC
This module provides a function convert/3
.
It converts characterset of given string from from
to to
.
iex> hello_euc = CCC.convert "こんにちわ", "UTF-8", "EUC-JP"
<<164, 179, 164, 243, 164, 203, 164, 193, 164, 239>>
iex> CCC.convert hello_euc, "EUC-JP", "UTF-8"
"こんにちわ"
Summary↑
convert(string, from, to) | Perform the characterset conversion and returns the result |
Functions
Specs:
Perform the characterset conversion and returns the result.
See libiconv documents for more info.