case SMPP of
#{data_coding := DC}
when DC == ?ENCODING_SCHEME_LATIN_1;
DC == ?ENCODING_SCHEME_IA5_ASCII;
DC == ?ENCODING_SCHEME_MC_SPECIFIC ->
SMPP#{data_coding => <<"utf8_compact">>};
#{data_coding := ?ENCODING_SCHEME_UCS2} ->
SMPP#{data_coding => <<"utf8">>};
...
end
Related to K2InformaticsGmbH/mpro#191
At https://github.com/K2InformaticsGmbH/smpp_parser/blob/master/src/smpp.erl#L30-L43