On 01.12.2010 17:11, Daniel L Wang wrote:
I'm using Lua XML-RPC so that I can have a Lua client make RPC calls to
a daemon that understands XML-RPC. But some of the strings that I'm
passing as parameters have characters that need to be escaped. i.e., ">"
needs to get converted to ">". As it is now, this causes problems
since clEncode merely shoves the parameter strings between xml tags
without performing the escaping (or, heaven forbid, character encoding).
I think I can workaround this by manually encoding my string parameters
prior to sending them through xmlrpc.http.call, but it seems this should
be handled in the library.
Hi Daniel.
Yes, that is a problem in the current version of the library. There is
an open ticket on http://github.com/timn/lua-xmlrpc/issues#issue/2
regarding this issue. The ticket reporter has a small patch, but it
captures only a small subset of the entities which need to be escaped,
therefore it has not been applied and needs further work.
I plan to look into this soonish. Is anyone aware of an existing library
that has something like html_escape() and html_unescape()? That would
make my life much easier because I could simply use those, instead of
having a character mapping in lua-xmlrpc. I suspect that must have been
relevant in the Xavante context already?
Tim
--
AllemaniACs RoboCup Team KBSG - Knowledge-Based Systems Group
========================================================================
http://robocup.rwth-aachen.de RWTH Aachen University
http://www.kbsg.rwth-aachen.de Ahornstrasse 55
http://www.fawkesrobotics.org D-52056 Aachen
Currently at:
Carnegie Mellon University, Intel Labs Pittsburgh, Personal Robotics Lab
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/