Sending non-English parameters vlaues to rwservlet for a pdf reports

Hi friends,
I have developed a report which I open through calling rwservlet from an HTML form posting all form inputs to the rwservlet to use as parameters to my report.
The problem arises when I try to pass non-English (Arabic) values, the report comes out but the passed Arabic values appear corrupted in the PDF file, Although other boilerplate Arabic fields appear very well.
The proplem is with the values I pass dynamically when posting to rwservlet not with static Arabic boilerplates!
thanks for help.

Fonts are defined in the template you use to generate the pdf. Your application add the data and both is processed yb the FOP processor. Now there are two possible causes of the '???' :
1. the data you sent to the template contains the '???' already
2. the template can't digest the data (the special characters) and puts '???' in the pdf.
Before going on you have to find out which one is your problem. The 2nd is the problem you better ask this in a FOP forum as you have to solve it by changing the template.
Timo

Similar Messages

  • Creating Parameters in RTF Template for BI Publisher Report

    hi,
    I have created Parameters in my BI Publisher Report and in SQL query. But i need to create same parameters in RTF Template , so that when i publish this report in dashboard , parameters will be visible. Can you please tell me how to create Parameters in RTF Template for BI Publisher Report ? I am not finding option. Please let me know .
    Thanks in advance
    Gayathri.

    all the parameter's value will be there in your xml .
    just you need to add parameter heading and corresponding xml tag name to get the parameter value on the report.
    if u dont have you can try like below
    https://blogs.oracle.com/xmlpublisher/entry/get_your_parameters_here_guv
    Declare Parameter in RTF Template
    Before you use the parameter in the RTF template file you need to declare it first. You can do so by having the following syntax.
    <?param@begin:%parameter_name%?>
    Note: where %parameter_name% is the parameter name that you have created at the BI Publisher Server UI.
    Here is an example:
    <?param@begin:param1?>
    Use it in RTF Template!
    Once it’s declared in the RTF template you can start using it as the same way you use the variable. You need to just add ‘$’ prefix in front of the parameter name. Here is the example:
    <?$param1?>
    The above example would print the parameter value in the report output. If you want to use this value in your condition or calculation you can simply use it as ‘$param1’. Yes, it’s that simple.
    If you are not sure if and how the parameter values are passed to the report when you run the report you can use this command in your RTF template, which will return all the parameter values passed to the RTF template at the runtime.
    <?xdoxslt:getXDOProperties($_XDOCTX)?>
    http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html

  • Using FOP for generating PDF report

    Hi,
    I followed the otn article for generating pdf files uing FOP.
    But I was unable to do so. When I debugged it I found that when the javascript tries to get the XMLFO output from htmldb it gets a blank xml output. I tried to use the exact same url the java script uses ( I got the url by using alerts in java script) I got back an empty xml file.
    I am using htmldb 2.0 on 9.2.0.5.
    Can any one point me to the right direction
    thanks
    amit

    Hi,
    I am using iAS 1.0.2.2.2 (Jserv) it is an Oracle Applications Environment.
    I finished the whole note.
    1. Downloaded the FOP jar files.
    2. Unzipped the jar files in the JAVA_TOP of the Applications environment
    3. JAVA_TOP is already in the class path of the jserv
    4. Added the jsp file to the correct directory
    5. Created the htmdb application with the java script
    6. I put some debugging alerts in the java script
    Now when I click on the pdf link I don't get any output. Because of the debugging statement in the java script I was able to figure out that the java script is not getting any output when it calls back the htmldb for the XML FOP outout.
    I finally tried the URL which the java script uses directly. It came back with an empty xml file.
    thanks
    amit

  • FlexPMD Coldfusion component for creating PDF report

    http://www.flexinabox.com/index.cfm/2009/11/29/FlexPMDPDF--A-ColdFusion-PDF-report-generat or-for-Flex-PMD
    Enjoy !
    Xavier

    Don't want to use third-party libraries? Then you'll have to write your own code that outputs data according to the PDF specifications. You can download them from Adobe:
    http://partners.adobe.com/public/developer/pdf/index_reference.html
    Personally I would recommend the third-party libraries as this is a very large wheel to reinvent.

  • Reports Sugestion - Data Template Support for Downloadable PDF Reports.

    This is something that I miss in APEX reports that I would like to see. Right now I have BI Publisher tied to my APEX install but there are reports I would like to move over but I hate the fact that APEX does not have the ability to use BI Publisher XML Data Templates! It seems like if you have the integration this would be a natural thing to have so you could use complex report and APEX security (as I found a few issues in BI Publisher that are deal killers for running a few of my newer reports directly on BIP). Most of my reports are too complex and would require extensive XPath coding to setup using RTF templates. This just seems like something that would be very useful in APEX.

    David:
    I should have a whitepaper on this subject by the end of the month.
    http://jastraub.blogspot.com/2008/12/more-changes-to-flexwsapi.html
    I know this doesn't help you right now so I will describe how it works. Create a Manual Web reference as described on Tyler's blog, except for the SOAP Envelope, using something like:
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <soapenv:Header/>
    <soapenv:Body>
    <pub:runReport soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <reportRequest xsi:type="pub:ReportRequest">
    <attributeFormat xsi:type="xsd:string">#P2_FORMAT#</attributeFormat>
    <parameterNameValues xsi:type="pub:ArrayOfParamNameValue" soapenc:arrayType="pub:ParamNameValue[]"/>
    <reportAbsolutePath xsi:type="xsd:string">#P2_ABS_PATH#</reportAbsolutePath>
    </reportRequest>
    <userID xsi:type="xsd:string">#APP_USER#</userID>
    <password xsi:type="xsd:string">#P101_PASSWORD#</password>
    </pub:runReport>
    </soapenv:Body>
    </soapenv:Envelope>
    You can hardcode format to pdf if that is all you wish to download. You can also hardcode the userID parameter, reportAbsolutePath, and the password parameter if you wish. Use something like DOWNLOAD_DOCUMENT as the collection name.
    Now create a page and create a before header process of type Web service that invokes this reference. The document's binary data will be stored in a node of an XML document in the collection encoded in base64 format. You will need another process that converts that to a BLOB and then presents a dialog to the browser to save the document. You can accomplish with a process like the following, after the call to the Web service:
    declare
    l_mime varchar2(48);
    l_name varchar2(4000);
    l_base64 clob;
    l_blob blob;
    l_size number;
    l_xml xmltype;
    l_ns varchar2(4000) default null;
    l_path varchar(255) default '//multiRef';
    begin
    l_mime := flex_ws_api.parse_response('DOWNLOAD_DOCUMENT',l_path||'/reportContentType/text()',l_ns);
    l_name := 'test.pdf';
    l_base64 := flex_ws_api.parse_response_clob('DOWNLOAD_DOCUMENT',l_path||'/reportBytes/text()',l_ns);
    l_blob := flex_ws_api.clobbase642blob(l_base64);
    l_size := dbms_lob.getlength(l_blob);
    htp.init;
    owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
    htp.p('Content-length: '||l_size);
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(l_name,chr(10),null),chr(13),null)||'"');
    owa_util.http_header_close;
    wpg_docload.download_file( l_blob );
    apex_application.g_unrecoverable_error := true;
    end;
    I hope that helps. Stay tuned for the white paper and sample application.
    Regards,
    Jason

  • How to send e-mails containing non-english characters

    Hi,
    I would like to send email using JavaMail,
    but I have a problem with sending non-english Characters.
    How to change/use different charset?
    What should I do to send non-english chars?
    thanks!

    Send mail as text/html (HTML enabled content) , Specify charset in the header part (GB23... or UTF-8)of HTML
    Its easy,
    I hope it would solve ur problem
    cheers
    Rajendra Bandi

  • Customer conversion for Non-English languages

    Hi:
    We have a requirement to convert customer data from lagacy system to Oracle EBS supporting English and Non-English languages. Our conversion programs for english is working fine but we are not sure about the approach for other language converions. Can anyboody share the knowledge if faced similar requirements?
    Thanks /Santanu

    Duplicate thread (please post only once) ...
    Customer conversion for non-english language
    Re: Customer conversion for non-english language

  • Forum-board for non-english speaking users?

    Hello!
    As my English isn't very good, and sometimes i don't know how to discribe my problem in English i'd like to ask if it's pssible to open a new Board for non-English speaking ArchLinux Users?
    Perhaps one in German, French etc.
    There non-english speaking  Users could ask for help in their language and other German/French/Spanish-speaking users could help them.
    CU ActionNews

    sarah31 wrote:well i have notice that there are some more common non-english language users on this forum. there are quite a few germans, various latin languages (spanish, portugese, etc), and so forth. i wonder if it would not be possible to have catagories on this forum for our foreign language user so that if they feel more comfortable working in their own language they can post there. i mean really it is not that much of a drain of resources. if these cata gories became very active more organization or splitting could then be done.
    The problem with separate categories for different languages is, as somebody already pointed out, that potentially useful information is then also separated. As a non-native English speaker myself, I still feel much more comfortable trying to understand bad English than perfect German of French.
    I also reckon that here are not that many Finnish archers that we could have forum of our own.. and even if there was Finnish category I would propably still post to the English forums.
    just my 0.02€
    .murkus

  • Entry of non-English characters into the db

    Hi
    We are facing a problem in inserting non-English characters into the database.For example, we have a company name field which can accept German characters. This field has been defined as of varchar2 type of size 50 in the db. When we enter 49 English characters and then one German character, the database is throwing the error that the inserted value is too large for the column.Is it that the German character is taken as equivalent to two English characters ? Or is there any database level setting that can be done for this ? For the time being we have identified certain critical fields and have doubled the size of their fields in the db. But I guess there has to be another solution to this....
    Please help.
    null

    Indeed, your German character is using two bytes to store itself. Consult the Oracle JDBC Developer's Guide.
    null

  • Entry of non-English characters into database

    Hi
    We are facing a problem in inserting non-English characters into the database.For example, we have a company name field which can accept German characters. This field has been defined as of varchar2 type of size 50 in the db. When we enter 49 English characters and then one German character, the database is throwing the error that the inserted value is too large for the column.Is it that the German character is taken as equivalent to two English characters ? Or is there any database level setting that can be done for this ? For the time being we have identified certain critical fields and have doubled the size of their fields in the db. But I guess there has to be another solution to this....
    Please help.
    TIA
    Vinoj

    Indeed, your German character is using two bytes to store itself. Consult the Oracle JDBC Developer's Guide.
    null

  • How to load file thru reader which contains non-english char in file name

    Hi ,
    I want to know how to load file in english machine thru reader which contains non-english chars in file names (eg. 置顶.pdf)
    as LoadFile gives error while passing unicode converted file name.
    Regards,
    Arvind

    You don't mention what version of Reader?  And you are using the AcroPDF.dll, yes?
    Sent from my iPad

  • Non-English characters in URL for rwservlet

    I'm having a problem when I try to use non-english characters in a URL request to generate a report.
    This works fine:
    http://...rwservlet?report=r1.jsp&m1=Fred
    But if I try Fréd (e with accent graph) the report does not return any data even though the SQL by itself would find data.
    I tried UTF-8 encoding
    http://...rwservlet?report=r1.jsp&m1=Fr%C3%A9d
    8859-1 encoding
    http://...rwservlet?report=r1.jsp&m1=Fr%E9d
    Or just spell it out (not sure what that gets encode as):
    http://...rwservlet?report=r1.jsp&m1=Fréd
    But noting works. Any ideas?
    Thanks, Andreas

    Suggestions
    1) Try with NLS_LANG as
    SWEDISH_SWEDEN.WE8DEC
    2) Make a paramform and enter via paramform (unencoded)
    (This is just for testing purpose)
    3) Change machine locale to swedish and try
    4) Which reports version is this ?
    Please see
    BUG 2713695 - NLS CHARACTERS FOR PARAMETERS CHANGE TO QUESTION MARKS WHEN PASSED ON URL BAR
    Get in touch with Support to see if this is the issue and if "yes" get a one-off patch.
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • Support issue for non-English characters (in html forms)

    Hi group!
    I just want to post an issue here and see if anyone else has the same problem. First off, Im running Windows XP MCE but the French version (not the english version). This may help find out where the problem really is.
    Second, I know a bit of html and such, and I'm referring to HTML Character entities for this thread, there's a quite complete list here for reference: http://www.faqs.org/docs/htmltut/characterentitiesfamsupp69.html
    I noticed that some, not all, non-English characters written in a textarea (which is, basically, a multi-lined input box) doesnt pass well or at all to the server when sending the form from Safari. Most of the time, the content of the text area is reduced to the beginning and ends where the first accentued character is met.
    The most used French accents (&eacute;, &agrave;) are usually well interpreted (but may, once in a while, produce that bug too) by safari, but &ocirc; and &icirc; doesnt do that well.
    Oddly, this bug doesnt happen all the time and doesnt "crash" in the same manner everytime.
    So I started a thread just to see if there's anyone else having issues with any non-english characters mostly in forms. Probably flash/shockwave does work, but I'm not sure- I have not tested yet.
    Acer Aspire 5044   Windows XP   Turion 1.8GHz, 1Gb SDRam, ATI 200M xpress

    Yes, it is a known issue. I also noticed that it sometimes works, but most of the time it does not. It will hopefully be solved in the future. According to http://www.apple.com/safari/download/ changes that will come include:
    # Support for International users
    # International text input methods
    # Advanced text (contextual forms, international scripts)
    Sony Vaio   Windows XP  

  • PDF generation for Non English Characters from ADF

    Hi
    We are using below piece of code to generate pdf from ADF Managed bean. It works fine. However for non English Characters(eg. Japanese,Vietnamese,Arabic)  it puts
    I got few blogs
    https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_appears
    However we are not using BI Publisher product . We are using its API's
    Can anyone tell where do we need to setup fonts within ADF or Weblogic or Server ?
    Input Parameters are
    a)xml Data
    b)InputStream  ie rtf Template
    import oracle.apps.xdo.XDOException;
    import oracle.apps.xdo.template.FOProcessor;
    import oracle.apps.xdo.template.RTFProcessor;
        public static byte[] genPdfRep(String pOutFileType,byte[] pXmlOut ,InputStream pTemplate)
            byte[] dataBytes = null;
            try {
                //Process RTF template to convert to XSL-FO format
                RTFProcessor rtfp = new RTFProcessor(pTemplate);
                ByteArrayOutputStream xslOutStream = new ByteArrayOutputStream();
                rtfp.setOutput(xslOutStream);
                rtfp.process();
                //Use XSL Template and Data from the VO to generate report and return the OutputStream of report
                ByteArrayInputStream xslInStream = new ByteArrayInputStream(xslOutStream.toByteArray());
                FOProcessor processor = new FOProcessor();
                ByteArrayInputStream dataStream = new ByteArrayInputStream((byte[])pXmlOut);  
                processor.setData(dataStream);
                processor.setTemplate(xslInStream);
                ByteArrayOutputStream pdfOutStream = new ByteArrayOutputStream();
                processor.setOutput(pdfOutStream);
                byte outFileTypeByte = FOProcessor.FORMAT_PDF;
                processor.setOutputFormat(outFileTypeByte); //FOProcessor.FORMAT_HTML
                processor.generate();
                dataBytes = pdfOutStream.toByteArray();
            } catch (XDOException e) {
                e.printStackTrace();
            return dataBytes;
    Appreciate your help.
    Thanks,
    Abhijit

    Fonts are defined in the template you use to generate the pdf. Your application add the data and both is processed yb the FOP processor. Now there are two possible causes of the '???' :
    1. the data you sent to the template contains the '???' already
    2. the template can't digest the data (the special characters) and puts '???' in the pdf.
    Before going on you have to find out which one is your problem. The 2nd is the problem you better ask this in a FOP forum as you have to solve it by changing the template.
    Timo

  • Non-english (cyrillic) characters in parameters values passed thru GO URL

    Hi
    Is it possible somehow to pass non-english (cyrillic) parameters and parameters values from one report to another using GO URL? Straightforward approach doesn't work since internal web-server (browser?) encoding of these cyrillic values on the stage of URL passing.

    Hi Srini,
    Thanks for all your help.
    Now I am able to navigate to the requested report/Dashboard Page. The issue was there were some spaces in between the url and parameters.
    But Now,I am stuck at passing the filters. Actually only the first filter among the 6 filters is getting passed. Even If swap the order of the filters, I first one in the order is only getting passed.
    So I have hardcoded the filters with actual values instead of Column names and then I am able to pass all the filters.
    Here is the updated URL:
    '<a href=http://servername/analytics/
    saw.dll?GO&path=/shared/xxx/aa%20bb/report%20one
    &Action=Navigate&P0=6&P1=eq&P2="Fact%20-%20xxx".ID1&P3='||CAST("Dim - Abc"."One ID" AS CHAR)||'&P4=eq&P5="Fact%20-%20xxx".ID2='||CAST("Dim - Abc"."Two ID" AS CHAR)||'&P6=&P7=lt&P8="Fact%20-%20xxx".DATE&P9='||CAST(TIMESTAMPADD(SQL_TSI_DAY,1,"Time"."Day") AS CHAR)||'&P10=eq&P11="Fact%20-%20xxx"."Three%20ID"&P12='||CAST("Dim - Abc"."Three ID" AS CHAR)||'&P13=ge&P14="Fact%20-%20xxx".DATE1&P15='||CAST(TIMESTAMPADD(SQL_TSI_DAY,1,"Time"."Day") AS CHAR)||'&P16=eq&P17="Time".Day&P18='||CAST("Time"."Day" AS CHAR)||'style="text-decoration:none;">'||"Dim - Abc.Name"||'<--/a>'
    Just after removing the spaces, It started navigating.
    Also tried out removing the Cast and || operators then I was getting the error " Id1 was expecting a numeric value but recieved ("Dim - Abc"."One ID").
    Regards,
    Pavan Gupta
    Edited by: Pavan Popi on Mar 13, 2013 7:01 AM

Maybe you are looking for