Sending < character

Topics: Developer Forum, User Forum
Sep 9, 2014 at 11:28 AM

Im trying to send a "< 10" string to filter some data. But the character ends up being "< 10" - html encoded. Why?

Im using
emulator.SendText("< 10");
I have also tried to do
emulator.PutText(" < 10", x, y) 
with the same result.

Regards. Kaj
Oct 31, 2014 at 2:50 AM
search the source, theres a place that it converts "<" to "<" and ">" to > or something like that, just coment it.
Nov 4, 2014 at 8:09 AM
Conversion function doesn't work properly. You will need to change sourcecode. Don't comment anything because it will break up other functionality if you are not sure what you are doing.

        private string encodeXML(string data)
            //data = data.Replace("\"", "&quot;");
            //data = data.Replace(">", "&gt;");
            data = data.Replace("<", "&lt;");
            data = data.Replace("&", "&amp;");
            return data;
        private string EncodeXML(string data)
            data = System.Security.SecurityElement.Escape(data);          
            return data;
this will fix your problem.