Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Setting EMITTER_OPTIONS_KEY in WebViewer
Lea
Hi,
I need to set the EMITTER_OPTIONS_KEY in my application to pass a String-Parameter to the fetch-event. But the "+"-Character is replaced by a space. Here is my Code:
HashMap<String, String> emitmap = new HashMap<String, String>();
emitmap.put("MyParameter", "t+t");
options.put(WebViewer.EMITTER_OPTIONS_KEY, emitmap);
WebViewer.display(path, options);
But this results in "t t" not "t+t". Am I doing something wrong or is it a bug?
Thanks,
--Lea
Find more posts tagged with
Comments
JasonW
Lea
Try:
emitmap.put("MyParameter", URLEncoder.encode("t+t", "UTF-8"));
Jason
Lea
I thought I already tried that :-/ ...anyway it works, thanks a lot.