K2InformaticsGmbH / smpp_parser

A parser for SMPP protocol PDUs
Apache License 2.0
3 stars 1 forks source link

Delete `data_coding` enumeration #8

Closed c-bik closed 6 years ago

c-bik commented 6 years ago

Related to K2InformaticsGmbH/mpro#191

At https://github.com/K2InformaticsGmbH/smpp_parser/blob/master/src/smpp.erl#L30-L43

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