I am using ejabberd version : 16.04 I receive a packet like this :
But i am getting only : g\u000ag
I want to get the contents as it is like so : g\\u000ag
No escape of additonal \
Any help would be highly appreciated.
Thanks
Can you show us how you check the content of Body
? Because I bet you got what you have stored in the body of Pkt
.
1> Body = <<"g\\u000ag">>.
<<"g\\u000ag">>
2> io:put_chars(Body), io:nl().
g\u000ag
ok
3> io:format("Body send_to_offline_resources_sms_push ~s~n",[Body]).
Body send_to_offline_resources_sms_push g\u000ag
ok
4> io:format("Body send_to_offline_resources_sms_push ~p~n",[Body]).
Body send_to_offline_resources_sms_push <<"g\\u000ag">>
ok