This error message is usually caused by passing an invalid query string to the URLVariables object. But in most cases you do not need to pass the request. You can simply add pairs to the object as normal properties and let it perform encoding and escaping (which this class should do).
var vars:URLVariables = new URLVariables(); vars.param1 = "Text to be escaped. Works for non ascii: ñ"; vars.param2 = "http://www.google.com/?q=something&test=1234"; trace(vars.toString());
Tracing, of course, is not needed, so you can see that the encoding is working.
Juan Pablo Califano
source share