JasperReportsIntegration icon indicating copy to clipboard operation
JasperReportsIntegration copied to clipboard

Arabic Letters not support for "_outFilename" parameter

Open HamzaAlabbasi opened this issue 1 year ago • 4 comments

Version: 2.10.1 Hi, When I use Arabic letters in "outFilename" parameter the output file name appears as "__.pdf" any help ? Thanks in advance.

HamzaAlabbasi avatar Feb 06 '24 08:02 HamzaAlabbasi

Did you escape the outFilename? It is passed on the URL, thus it needs to be converted first into "safe" characters for the http request as it is used as an url parameter.

You can try to use: apex_util.url_encode('<arabic filename>') to encode the filename. See integration-usage for an example.

daust avatar Sep 16 '24 14:09 daust

Hello Dietmar, Actually, I'm using JavaScript for calling reports. I use encodeURI() but it doesn't work.

window.open("http://localhost:8080/jri/report?_repName=TEST%2FMain&_repFormat=pdf&_outFilename=" + encodeURI('') + ".pdf&_dataSource=testds&_repLocale=en_US&P_INVOICE_ID=1", "_blank");

Thanks.

HamzaAlabbasi avatar Sep 24 '24 17:09 HamzaAlabbasi

So, you are not using Oracle APEX, or the xlib_jasperreports packages to call the report, but you are using it directly ... just the J2EE app?

Can you please send me a simple html file with arabic characters how you call it? That would be easier for me to troubleshoot.

Thank you very much. You can send it to dietmar dot aust at gmail dot com. Thank you for your help.

I guess you only need the above statement and insert the arabic characters into the file. That's it.

daust avatar Sep 25 '24 11:09 daust

Ok. Thanks for your help.

HamzaAlabbasi avatar Sep 25 '24 12:09 HamzaAlabbasi