[erlang-questions] Euro Symbol (€) conversion from HTTP API to SMPP through mochiweb

Dmitry Klionsky dm.klionsky@REDACTED
Fri Nov 7 21:23:40 CET 2014


On 11/07/2014 05:07 AM, Sanath Prasanna wrote:
> Hi,
> I used mochiweb web server to handle http request. I submit messages 
> with euro - € as "%E2%82%AC" thorugh HTTP API. I need to forward this 
> to SMPP connction. Before that I want to convert that to 1B65. 
> Otherwise € character is not display in mobile.
> How to do that ? Appreciate if some can help to do that.
> Br,
> Sanath Roberto
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

Hi,

You need to convert from UTF8 to GSM 03.38. Use this library 
https://github.com/iamaleksey/gsm0338.

3> gsm0338:from_utf8("€").
<<"\ee">>

-- 
Best regards,
Dmitry Klionsky

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141107/2573ea5d/attachment.htm>


More information about the erlang-questions mailing list