flex - How do I prevent Flash's URLRequest from escaping the url? -


i load xml servlet flex application this:

_loader = new urlloader(); _loader.load(new urlrequest(_servleturl+"?do=load&id="+_id)); 

as can imagine _servleturl http://foo.bar/path/to/servlet

in cases, url contains accented characters (long story). pass unescaped string urlrequest, seems flash escapes , calls escaped url, invalid. ideas?

my friend luis figured out:

you should use encodeuri utf8url encoding http://livedocs.adobe.com/flex/3/langref/package.html#encodeuri()

but not unescape because unescapes ascii see http://livedocs.adobe.com/flex/3/langref/package.html#unescape()

i think getting %e9 in url instead of expected %c3%a9.

http://www.w3schools.com/tags/ref_urlencode.asp


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -