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)
Report Viewer - Parameter Accent (diacritic)
cirovladim
I have a report with a dynamic text wich displays the value of a parameter called "title". When I view my report within Eclipse and pass it a value like "Informaci?n" there's no problem, it show up the title correctly. But when I try to generate it through Report Viewer passing the value of the parameter in the url it shows something like "Informaci?3n" -if I pass the value through the parameter dialog it also works correctly-
The url is as follows:
'
http://jbossserver:8080/ReportViewer/run?__format=pdf&__report=rptInformeMensual.rptdesign&title=Información'
;
I've also tried passing the url without encoding with no success
'
http://jbossserver:8080/ReportViewer/run?__format=pdf&__report=rptInformeMensual.rptdesign&title=Informaci?n'
;
Do you know what can I do to make it work?
Find more posts tagged with
Comments
mwilliams
Is this the only word you're having this issue with? Or is this just one example?
cirovladim
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="78655" data-time="1308258694" data-date="16 June 2011 - 02:11 PM"><p>
Is this the only word you're having this issue with? Or is this just one example?<br /></p></blockquote>
<br />
This is just an example, the same occurs with any word with a <a class='bbc_url' href='
http://en.wikipedia.org/wiki/Diacritic'>diacritic</a>
; mark, i.e. <br />
"Gonz?lez" -> "González"<br />
"Garc?a" -> "Garc?-a"<br />
<br />
I think the report viewer does some encoding/decoding when reading parameter values from dialog but not when directly passed in the url, how may I overcome this?
cirovladim
I've been playing with parameter encoding and found a solution.<br />
First, You need to change diacritics for its counterparts <a class='bbc_url' href='
http://www.w3schools.com/tags/ref_entities.asp'>html
entities</a>. <br />
<blockquote class='ipsBlockquote' ><p>Informaci?n -> Información</p></blockquote>
Once you did this, you should url encode the parameters<br />
<blockquote class='ipsBlockquote' ><p>Información -> Informaci%26%23243%3Bn</p></blockquote>
So, the url finally looks like this:<br />
<blockquote class='ipsBlockquote' ><p>'<a class='bbc_url' href='
http://jbossserver:8080/ReportViewer/run?__format=pdf&__report=rptInformeMensual.rptdesign&title=Información'>http://jbossserver:8080/ReportViewer/run?__format=pdf&__report=rptInformeMensual.rptdesign&title=Información</a>'</p></blockquote>
;
<br />
Here are the tools I played with:<br />
<br />
<a class='bbc_url' href='
http://www.string-functions.com/htmlencode.aspx'>http://www.string-functions.com/htmlencode.aspx</a><br
/>
<a class='bbc_url' href='
http://meyerweb.com/eric/tools/dencoder/'>http://meyerweb.com/eric/tools/dencoder/</a>
;
mwilliams
Thanks for the update. This could be a good tip to put in the devShare as well for easier searching. Plus, you'd be entered in the devShare article of the month contest.
cirovladim
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="78850" data-time="1308678427" data-date="21 June 2011 - 10:47 AM"><p>
...Plus, you'd be entered in the devShare article of the month contest.<br /></p></blockquote>
<br />
Great!