Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Issue when special character is passed as parameter
yrraja
Hi All
One of my report expects a string type parameter. It works fine for plain strings but problem occurs when the URL contains special character like following string:
BlackBerry?
The URL clearly shows the correct string:
...&Make=BlackBerry?&...
When i display this parameter inside the report i see the following:
BlackBerry®
Due to this unexpected extra character all the further comparisons fail. Can someone tell me what is going on and how to fix this.
Thanks
yrraja
Using BIRT 3.7.2
Find more posts tagged with
Comments
CBR
Can you try to change the character encoding to tell your browser to encode the special characters using UTF-8?
I m assuming that you are using Tomcat as server. See
http://blog.oio.de/2010/12/31/solving-tomcat-encoding-problems-in-utf-8-webapps/
on how to configure Tomcat server to define encoding.
yrraja
HI cbrell
Thanks for this tip. I tried it out in my local dev environment and it did solve the issue.
This method requires Tomcat server restart which i cannot do at the moment so i ended up using another approach. Here is what i did:
1. I encoded the parameter value before passing it on using the javascript method "encodeURIComponent()"
2. In the target report i decoded is using the method "decodeURIComponent()"
Thanks