Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » UTF-8 Encoding of parameters in hyperlink
UTF-8 Encoding of parameters in hyperlink [message #179499] Fri, 21 July 2006 19:30 Go to next message
Eclipse UserFriend
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
"Resending" : UTF-8 Encoding of parameters in hyperlink [message #179761 is a reply to message #179499] Mon, 24 July 2006 16:12 Go to previous message
Arun is currently offline ArunFriend
Messages: 3
Registered: July 2009
Junior Member
Hello,

Any information in this matter would be very helpful. Our integrations are
broken at present due to this. I would like to know how to URLEncode with
UTF-8 scheme the parameter values with multibyte charcters (chinese) in
hyperlink constructed in Expression builder.

Thanks
Arun
Previous Topic:a problem about the page break
Next Topic:IMPORTANT! Webviewer performance problems.
Goto Forum:
  


Current Time: Thu Jul 18 21:31:11 GMT 2024

Powered by FUDForum. Page generated in 0.03516 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top