简体   繁体   English

使用fxml从erlang提取数据

[英]Extracting data from erlang using fxml

I am using ejabberd version : 16.04 I receive a packet like this : 我正在使用ejabberd版本:16.04,我收到这样的数据包:

But i am getting only : g\ g I want to get the contents as it is like so : g\\\ g No escape of additonal \\ 但是我只得到: g\ g我想得到的内容是这样的: g\\\ g没有g\\\ g的\\

Any help would be highly appreciated. 任何帮助将不胜感激。

Thanks 谢谢

Can you show us how you check the content of Body ? 您能告诉我们如何检查Body的含量吗? Because I bet you got what you have stored in the body of Pkt . 因为我敢打赌,您得到了存储在Pkt正文中的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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM