python xmpp raw_xml

51 views
Skip to first unread message

Илья Дьячков

unread,
Apr 7, 2014, 7:40:19 AM4/7/14
to google-a...@googlegroups.com

Hallow 

if i send xmpp message with 

from google.appengine.api import xmpp
xmpp.send_message(jids="ronhil...@gmail.com", body=u"<body>Привет</body>", raw_xml=True)

I received message "????" in gtalk IM

if i send:

from google.appengine.api import xmpp
xmpp.send_message(jids="ronhil...@gmail.com", body=u"Привет", raw_xml=False)

I received message "Привет" in gtalk IM

How fix this BUG?? 

Vinny P

unread,
Apr 7, 2014, 10:27:35 PM4/7/14
to google-a...@googlegroups.com
So to clarify, the error is that you can't display the <body> tag in GTalk IM? Do you expect the body tag to be shown as plain text or to be interpreted as markup? Also, why have you listed raw_xml as true in the first code example, but false in the second example?
 

 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Илья Дьячков

unread,
Apr 8, 2014, 2:23:53 AM4/8/14
to google-a...@googlegroups.com
I need send raw_xml with unicode to custom jabber client (strophe c++ ), GTalk IM jast example for explain error with unicode string.



вторник, 8 апреля 2014 г., 6:27:35 UTC+4 пользователь Vinny P написал:
On Mon, Apr 7, 2014 at 6:40 AM, Илья Дьячков <ronhil...@gmail.com> wrote:
if i send xmpp message with from google.appengine.api import xmpp
xmpp.send_message(jids="ronhill.i...@gmail.com", body=u"<body>Привет</body>", raw_xml=True)
I received message "????" in gtalk IM
if i send: from google.appengine.api import xmpp
xmpp.send_message(jids="ronhill.i...@gmail.com", body=u"Привет", raw_xml=False)
I received message "Привет" in gtalk IM
How fix this BUG?? 
Reply all
Reply to author
Forward
0 new messages