UTF-8 Encoding of parameters in hyperlink [message #179499] |
Fri, 21 July 2006 19:30 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: helloarun.gmail.com
Hello BIRT gurus,
We are using BIRT to generate reports and charts in our portal
application. The application is set up to run on tomcat 5.5. Charts are
generated through API integration.
The reports/charts have links to other pages in the application and also
to external URLs. Some of the parameters in the hyperlink have multibyte
characters. The links constructed by BIRT engine do not appear to be
UTF-8 encoded causing the target page to fail due to incorrect values in
the request.
The link is constructed through expression builder. For eg.
"<a href=\"javascript:void
window.open('http://localhost:8080/console?object_id=" + row["ISSUE_TYPE"]
+ "')\">" + row["ISSUE_TYPE"] + "</a>"
The value from ISSUE_TYPE column can have multibyte characters and in such
a case, the link does not appear to work. If the value is UTF-8 encoded, I
would expect to see some code like %E8%AA%9E%EF%BF%BD which I do not.
The URIEncoding attribute on tomcat's connector is set to UTF-8. The
browser encoding is also set to UTF-8. I also set the proper encoding on
request object in my target jsp before calling request.getParameter, but
the value returned from request is incorrect.
Do I need to do anything more in BIRT to make sure proper encoding happens
? I tried using encodeURIComponent in expression builder but that did not
resolve the problem.
Thanks
Arun
|
|
|
|
Powered by
FUDForum. Page generated in 0.03822 seconds