Arabic Characters in JSP

I have an XML file that contains Arabic characters which i am getting from the database. I want my JSP to read this XML file and apply a stylesheet which contain some arabic characters...
I tried using encoding=windows-1256 and by setting charset=windows-1256...
Even then, my JSP is unable to read these arabic characters
Any help on this is appreciated....
null

Hi Chris,
Thanks for your reply.However I still have some problems.
I couldnt get jpdk 3.0.9.0.4 version the latest version that I
got was jpdk 3.0.9.0.2.
I tried the 3.0.9.0.2 version and it gave me the below error.
Error-
sun.io.MalformedInputException
     at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java,
Compiled Code)
     at java.io.InputStreamReader.convertInto
(InputStreamReader.java, Compiled Code)
     at java.io.InputStreamReader.fill
(InputStreamReader.java, Compiled Code)
     at java.io.InputStreamReader.read
(InputStreamReader.java, Compiled Code)..........
Can you guide me regarding this ???
Regards,
Mandar.

Similar Messages

  • Help:displaying Arabic characters using XSL

    How do I display static Arabic characters using XSL in a HTML page, from within a JSP?
    I need to display a HTML page wherein static Arabic characters have to be shown. I use the following XSL document with static Arabic characters inside:
    <?xml version = '1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <HTML>
    <HEAD/>
    <xsl:apply-templates/>
    </HTML>
    </xsl:template>
    <!-- document xsl:template -->
    <xsl:template match="booklist">
    <BODY BGCOLOR="#CCFFFF">
    <H1>^GFcI cSGZOI
    </H1>
    <P> This will illustrate the transformation of XML file containing list of books to a HTML table form
    </P>
    <xsl:apply-templates/>
    </BODY>
    </xsl:template>
    <xsl:template match="booklist/book">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="booklist/book/title">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="booklist/book/author">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="booklist/book/publisher"/>
    <xsl:template match="booklist/book/price"> Price: $
    <xsl:apply-templates/>
    </xsl:template>
    </xsl:stylesheet>
    When I try to read the XSL document using an IO stream, like this,
    InputStream is = getClass().getResourceAsStream("myXSLDocument.xsl");
    XSLStylesheet stylesheet = new XSLStylesheet(inputStream, null);
    from within a JSP, I get a null pointer exception as shown below:
    java.lang.NullPointerException:
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:175)
    at mip.portlets._cardvalidaterportlet._cardentry._jspService(_cardentry.java:143)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
    at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code)
    at oracle.jsp.JspServlet.service(JspServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.portal.provider.v1.http.JspRenderer.renderBody(JspRenderer.java:133)
    at oracle.portal.provider.v1.RenderManager.render(RenderManager.java:164)
    at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:510)
    at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:647)
    at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:383)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    I have no problems parsing the same XSL containing static Arabic text using Transviewer beans' XSLTransformPanelSample class. This means that my XSL has no errors in it.
    null

    You need to use the correct and the same character encoding (charset) thorough the complete process.
    Whenever you get question marks, then it means that the charset used does not recognize the bytes (which on its turn are apparently encoded by a different charset).
    This is an important read, read it from top to bottom, preferably twice: [http://www.joelonsoftware.com/articles/Unicode.html].

  • Arabic Characters Displaying as ?????????????????????

    Hi all,
    We are facing problems in displaying arabic characters on some pages while loading data from database with AR locale settings.
    When UTF-8 did not work as the data in database was stored using encoding WINDOWS-1256.
    After changing to WINDOWS-1256, it did work on most of the pages by adding following two lines, but one page still has problems and data is displayed as ????????????????
    <%@ page contentType="text/html;charset=windows-1256"%>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"/>The .jsp page with problem, has one extra following LINE, if that can be a problem during its initialization etc.:
    <%@ page extends="com.retailer.web.ParentJsp"%>And ParentJsp.java extends com.orionserver.http.OrionHttpJspPage
    Beside above things, what are chances that the FONT-FAMILY used from .css as styleClass attribute with web control, can create problems...
    Thanx in advance...
    Edited by: ghussain on May 18, 2009 5:00 PM

    Use UTF-8 all the way.
    Carefully read this: [http://balusc.blogspot.com/2009/05/unicode-how-to-get-characters-right.html].
    Please keep in mind that using a Windows proprietary encoding on the both sides requires (yes, requires) that both the server machine and the client machine runs Windows. Why would you tight couple your server environment that much and why would you exlude non-Windows users from your webapp? This is almost the most foolish you can do.

  • Arabic characters.URGENT

    hi all i am trying to read arabic characters from an html page, store into mysql database then retrieve them.
    my broblem is that i retrieve them as english characters although i have set my encoding scheme to Cp1256 (arabic windows).Please help me.
    here are the two test JSPs i use
    ar1
    <%@ page session="true" import="java.util.*,java.sql.*,Orders.Cust_CartBean,pkgAdmin0.Item,Orders.CustomerBean,pkgAdmin0.DBConnectionManager"contentType="text/html;charset=Cp1256"%>
    <html>
    <body>
    <form method="post" action="/DeCom/ar2.jsp">
    <input type="textbox" name="inp" value="">
    <input type="submit">
    </form>
    </body>
    </html>
    ar2
    <%@ page errorPage="ErrorPage_e.jsp"
    session="true"
    import="java.util.*,java.sql.*,Orders.Cust_CartBean,pkgAdmin0.Item,Orders.CustomerBean,pkgAdmin0.DBConnectionManager"contentType="text/html;cha
    rset=Cp1256"%>
    <html>
    <body>
    <%
    String req = request.getParameter("inp");
    out.println("<p><b>Request returned: " + req + "<b></p>");
    DBConnectionManager db = DBConnectionManager.getInstance();
    Connection conn = db.getConnection(db.DbType,1500);
    Statement stmt = conn.createStatement();
    stmt.executeUpdate("DELETE FROM AR_TEST");
    stmt.executeUpdate("INSERT INTO AR_TEST VALUES('" + req + "')");
    ResultSet rs = stmt.executeQuery("SELECT AR_STRING FROM AR_TEST");
    while (rs.next()) {
    out.println("<b> Returned as string from database as: " + rs.getString(1) + "<b>");
    rs.close();
    stmt.close();
    %>
    </body>
    </html>

    Hi,
    I suggest that you can pull out the Arabic string from the
    database in the plain text file and see if the result is ok.
    If yes, you may transfer on the JSP. If not, treat it as
    unicode but it is more annoying in the process. I mean that
    save the String in unicode form \u0123\u1345\uaabc . something
    like this . About the Internationalization, you may consider the Java Internationlization.
    good luck,
    Alfred Wu

  • How to take arabic characters in a text box from keyboard.

    Hi friends,
    I have a jsp file with 2 text boxes.The first one should take only english input while the second textbox should take only arabic characters.I have to do this without changing modes from EN to AR in taskbar.
    Thanks in advance

    In that case you need to programmatically insert the text at the selection point. You get the selection point using the selectionBeginIndex and selectionEndIndex properties. I have an app where I do that, using this code:
    // textInput is the name of the TextInput control
    private function insertTextAtSelection(text:String):void
         var start:int = textInput.selectionBeginIndex;
         var end:int = textInput.selectionEndIndex;
         var hasSelection:Boolean = start != end;
          textInput.text = textInput.text.substring(0, start) + text + textInput.text.substring(end);
         if (hasSelection)
             textInput.selectionBeginIndex = start;
             textInput.selectionEndIndex = start + text.length;
         else
             textInput.selectionBeginIndex = textInput.selectionEndIndex = end + text.length;
    This is what the code does:
    gets the starting and ending positions of the insertion point (in case the user has an active selection rather than just an insertion point).
    concatenates the old text with the new text and writes it into the text input
    restores the user's previous selection or insertion point (In this case I'm setting the selectionBeginIndex and selectionEndIndex properties rather than calling setSelection(), but the end result is the same.)

  • How to print Arabic characters in Oracle BI Publisher report

    Dear Experts,
    Kindly suggest me how to print arabic characters in BI Publisher.
    Regards,
    Mohan

    see link
    https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_appears

  • Arabic characters are not getting displayed in oracle pdf output

    Hi,
    I am trying to print arabic characters in report output but junk characters are getting displayed in output.
    Using 10g report builder, added the arabic labels in report layout.
    Followed below steps:
    1. Set NLS_LANG=ARABIC_United Arab Emirates.AR8MSWIN1256
    2.Set REPORTS_PATH to the system font directoy such as C:\SYSROOT\Fonts
    3.transferred the arialbd.ttf to $ORACLE_HOME/guicommon/tk/admin/AFM
    4.Open uifont.ali under$ORACLE_HOME/guicommon/tk/admin, set the font alias
    entries at [PDF:Subset] section.
    [PDF:Subset]
    Arial...Bold.. = "arialbd.ttf"
    5. open datap462.ppd under $ORACLE_HOME/guicommon/tk/admin/ppd, set the font information like
    *Font Arial-Bold: Standard "(001.001)" Standard ROM
    6.added following entries:
    Add this under the following section
    ## setting for Reports Runtime
    REPORTS_PATH=$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:$ORACLE_HOME/
    guicommon/tk/admin/AFM:${REPORTS_PATH};
    export REPORTS_PATH
    b) Add this in the end of the Reports.sh file
    PRINTER=dds62; export PRINTER
    tk90_PRINTER=dds62; export tk90_PRINTER
    tk90_PRINT_STATUS=echo; export tk90_PRINT_STATUS
    =======================================
    After having all these steps, still my report output is coming with junk characters.
    Please help me on this and this is very urgent requirement for me and i am trying on this since 3 days.
    Thanks,
    Harini

    Hello,
    Try to set the Font Subsetting like below in the file uifont.ali
    [PDF:Subset]
    * = "arialbd.ttf"
    If it works after this modification, the problem will be related to the Font Aliasing
    Troubleshooting Guide for Font Aliasing / Font Subsetting / Font Embedding Issues (Doc ID 350971.1)
    Regards

  • Problem with Arabic characters

    Hi:
    I don't know if this is the correct place to post the question, but here it goes...
    I have an SQL 2005 database, connected via a Linked Server to an Oracle Database.
    I have a table in SQL that contains arabic characters, and I need to insert it into an Oracle table.
    These characters appear as "????" after being inserted in the oracle table.
    I guess I hace some collation/characterset problem, but cannot finf the solution.
    The column where the arabic characyers are saved in SQL is defined as:
         [Remarks] [nvarchar](1000) NULL,
    And default SQL server collation is: SQL_Latin1_General_CP1_CI_AS
    When I do a select on this table, it can see arabic correctly.
    ORACLE NLS CONFIGURATION IS:
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET AR8MSWIN1256
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 11.1.0.6.0
    The sql sentence in SQL server that moves the data to oracle is:
    INSERT INTO openquery(Oracle_DB, 'select Ticket_NO,Remarks from webportal.webcc_escal_det')
         (Ticket_NO,Remarks )
         SELECT Ticket_NO, Remarks
         FROM Details(nolock)
    Thanks in advance!!
    Mariana

    I think first you should check your character set
    SELECT * FROM NLS_DATABASE_PARAMETERS where parameter = 'NLS_CHARACTERSET'
    For oracle to display correctly, you need to change your character set that caters to Arabic

  • Oracle Reports 11.1.2 junk Arabic characters in PDF

    Hi guys,
    When I generate a report with Arabic characters, they appear as junk characters.
    I did the following:
    Set NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256
    Include C:\WINDOWS\Fonts in REPORTS_PATH (in the Registry: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OH258674538 )
    Open uifont.ali and set the font alias:
       [PDF:Subset]
       "Arabic Transparent"...Bold.. ="arialbd.ttf"
       "Arabic Transparent"="arialbd.ttf"
    Installed Arabic keyboard in Windows server that hosts Reports server
    Changed the location to United Arab Emirates in Windows
    Run the report with DESTYPE=FILE and DESFORMAT=PDF
    I also tried to change the font name of the field that contains the Arabic data in the report to things like: Tahoma, Arial, Courier New, but with no luck.
    Environment Specs:
    OS: Windows 2008 R2
    Oracle Reports 11.1.2 (installed on the top of Weblogic 10.3.6.0)
    Thanks in advance.

    hi,
    you have to touch following files.
    $ORACLE_HOME/guicommon/tk/admin/AFM
    $ORACLE_HOME/guicommon/tk/admin/AFM/Symbol.afm
    $ORACLE_HOME/guicommon/tk/admin/TTF
    $ORACLE_HOME/guicommon/tk/admin/uiprint.txt
    $ORACLE_HOME/guicommon/tk/admin/uifont.ali
    $ORACLE_HOME/guicommon/tk/admin/PPD/datap462.ppd
    $ORACLE_HOME/guicommon/tk/admin/PPD/screenprinter.ppd
    $ORACLE_HOME/bin/reports.sh
    convert your true type font to afm and copy ttf/afm files to respective directory
    regards

  • Oracle XML Publisher Java API's showing arabic characters as question marks

    Hi All,
    I have created a custom xml publisher report. All the setups in xdo.cfg and the fonts have been installed. When i run the report as concurrent program using the XDODTEXE as the executable this report executes fine displaying the arabic characters in the PDF output.
    I have integrated this xml report to a OAF page where am getting the output of the arabic characters as ???????
    Following is the java code i have used to generate the blob for the xml publisher report.
    pageContext.writeDiagnostics(this,"Inside process Template",4);
    AppsContext appsContext = ((OADBTransactionImpl)pageContext.getRootApplicationModule().getOADBTransaction()).getAppsContext();
    String applicationShortName = dataDefApplication;
    String dataSourceCode = dataDefCode;
    OutputStream os = new ByteArrayOutputStream();
    try {
    DataTemplate dataTemplate = new DataTemplate(transaction.getAppsContext(), dataDefApplication, dataDefCode);
    //Get Parameters
    ArrayList parameters = dataTemplate.getParameters();
    //set Parameter Values as ArrayList of oracle.apps.xdo.dataengine.Parameter
    Iterator it = parameters.iterator();
    while (it.hasNext())
    Parameter p = (Parameter) it.next();
    pageContext.writeDiagnostics(this,"Processing Parameters "+p.getName(),4);
    if (p.getName().equals("P_AUCTION_HEADER_ID"))
    if(AuctionHeaderId != null)
    p.setValue(AuctionHeaderId);
    else
    p.setValue(null);
    dataTemplate.setOutput(os);
    dataTemplate.processData();
    System.out.println(os.toString());
    } catch (SQLException e) {
    System.out.println("SQLException occurred.");
    } catch (XDOException e) {
    System.out.println("XDOException occurred.");
    } catch(Exception e){
    System.out.println("Exception (other) occurred.");
    byte[] xmlb = os.toString().getBytes();
    BlobDomain blob = new BlobDomain(xmlb);
    return blob;
    Kindly let me if i had missed something.
    Thanks
    Anoop

    On a related note, I am seeing a couple of different types of 'incorrect' characters based on different NLS_LANG settings.
    If it is set to AMERICAN_AMERICA.UTF8, I get characters like this:
    رقم الموظ�
    If it is set to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, I get characters like this:
    ÑÞã ÇáãæÙÝ
    Do any of you know what these characters are?
    Thanks for any insight.

  • Data Integrator: Arabic characters are not correctly displayed

    Hi,
    I'm trying to load Arabic text via an UTF8 flat file into an Oracle database.
    I've read several topics and set the correct code page settings (also during install) for the datastore and flat file.
    Already in flat file preview (see attached screenshot), the wrong characters are displayed. The characters as they are displayed, are inserted in the database. So I think that if I get the flat file preview correctly, the text is inserted correctly into the database.
    On the other hand: When i copy the contents of the flat file, via a bodi job, to another flat file, the target flat file does contain the correct characters (when opened in a utf8 file reader).
    I tried several solutions and also went through the Code Page help topic on the BODI site.
    Does anyone know a solution to my problem or know this is a BODI bug or something?
    I'm using Designer version 11.5.3.9 (I went through fix notes of versions after 11.5.3.9, but saw nothing mentioned about my problem). The Oracle database does support arabic characters as I can insert them via e.g. SQL Developer.
    Thanks a lot in advance!
    Picture of the flat file settings and data preview:
    [flat file settings and data preview|http://img169.imageshack.us/my.php?image=arabcharyx3.jpg]
    Edited by: Willem van Opzeeland on Jul 23, 2008 2:13 PM: added info

    Hé Amr, thanks a lot! This sounds good.
    I indeed saw a kind of this solution somewhere else. What I did not is restarting the computer, since it is a shared server. Maybe that was why it didn't solve my problem.
    Before I restart an additional question: I need to convert some files with Turkish characters as well.
    Have you got a value which I can put in NLS_LANG, which supports these characters and Arabic characters both at the same time?

  • Arabic Characters Issue

    Hi
    Following is our environment
    DB Version: Oracle 11g R2 (11.2.0.3.0) 64bit
    OS : OEL 5U2
    Characterset: AMERICAN_AMERICA.AR8MSWIN1256
    We have an opensource application built on php. CHARSET was defined as AR8MSWIN1256 in the configuration file. Data was inserted using browser based interface. Use access the system using IE 8 since it is web based application. Data comprise of both Arabic and English. It is displayed perfectly fine using browser ie Arabic shows proper Arabic characters and English shows correct English.
    Problem started when a requirement came to generate some reports using Oracle Reports 10g. Arabic data show as garbage in the reports. Vendor was asked to provide some solution. They suggested to change the CHARSET to AL32UTF8 in the config file of the application. After making the changes, the new data that is inserted in the database can be seen correctly for both languages regardless of the tool (be it SQLDeveloper or Oracle Reports). The old data, however, shows garbage. Surprisingly when data is extracted using scripts in flat files and then imported in the test database after setting environment variable NLS_LANG=AMERICAN_AMERICA.UTF8 using @/../filename.sql, it converts it properly. Since data is huge and this is taking way too much time, I was hoping if someone could help me in quickly perform this migration? Already tried CSSCAN/CSALTER and DMU but did not succeed. DMU stopped at 5th stage when it was supposed to issue ALTER DATABASE CHARACTER SET command.
    Currently I am installing database with AL32UTF8 characterset and planning to import the schema in it. Is my approach correct? Any help will be highly appreciated.
    Thank you
    myuser@DB>select dump(name,1016) from  mytable where id like '1';
    DUMP(NAME,1016)
    Typ=1 Len=28 CharacterSet=AR8MSWIN1256: d9,81,d8,b1,d9,8a,d9,82,20,d8,b9,d9,85,d9,84,20,d8,a7,d9,84,d9,82,d8,b7,d8,a7,d8,b9
    myuser@DB>select dump(name,1016) from  mytable where id like '2';
    DUMP(NAME,1016)
    Typ=1 Len=93 CharacterSet=AR8MSWIN1256: d8,aa,d8,b9,d8,a7,d9,85,d9,8a,d9,85,20,d9,85,d9,86,20,d8,a7,d9,84,d9,85,d8,af,d9,8a,d8,b1,20,d8,a7,d9,84,d8,aa,d9,86,d9,81,d9,8a,d8,b0,d9,8a,20,d9,84,d9,84,d9,82
    myuser@DB>select value from NLS_DATABASE_PARAMETERS where parameter LIKE '%CHARACTERSET';
    VALUE
    AR8MSWIN1256
    UTF8Edited by: user560883 on May 4, 2012 3:34 AM
    Edited by: user560883 on May 4, 2012 3:39 AM

    Hi Sergiusz
    Firstly I would like to thank you for replying.
    Secondly I was able to move further with the DMU (the issue was due to more sessions that I had to kill to allow DMU to proceed with ALTER DATABASE CHARACTER SET command).
    Here is what I have done so far without any luck.
    1) Created a test instance with source database characterset ie AR8MSWIN1256 and performed a full import using DataPump (impdp).
    2) Used DMU to perform conversion/migration to AL32UTF8. (this step took almost 5 hours).
    3) Used SQLDeveloper to verify the results and data still show as garbage.
    Thing that worked for me but is way to slow and not reliable.
    1) Save data in file (.sql) using Windows XP client or windows 2003 server. Basically I am generating the whole SQL statements for UPDATE eg UPDATE table SET xx)
    2) SET NLS_LANG=AMERICAN_AMERICA.UTF8 on command prompt of Windows XP client and use SQLPLUS to open sql prompt.
    3) Use @path\file.sql (that was generated in earlier step) to update records.
    4) Verify via SQLDeveloper that arabic shows correctly.
    Issue with above approach is since we have millions of records stored in multiple tables, sometimes while generating the file with SQL Statements, the server CPU touch 100% and then freeze. Also file size grow exponentially and to verify how much of the work was done prior to freezing becomes very difficult.
    I still have the DB after using the DMU tool intact so if you could think of some other workaround that will be great.
    Again, thank you for helping me with this.

  • Problem displaying Arabic characters in PDF using Java APIs

    We are experiencing a problem when attempting to display Arabic characters within a PDF document using the Java APIs.
    The relevant Java code is as follows:
    RTFProcessor processor = new RTFProcessor("example.rtf" );
    processor.setOutput( “example.xsl” );
    processor.setExtractXLIFF(true);
    processor.process();
    ByteArrayOutputStream dataOut = new ByteArrayOutputStream();
    DataProcessor dataProcessor = new DataProcessor();
    dataProcessor.setDataTemplate( example.xdt" );
    if( parameterValues != null && parameterValues.length > 0 )
    setReportParameters( dataProcessor, parameterValues ); // method to set any report parameters from the parameterValues list.
    dataProcessor.setConnection( jdbcConnection );
    dataProcessor.setOutput(dataOut);
    dataProcessor.processData();
    FOProcessor foProcessor = new FOProcessor();
    foProcessor.setLocale( locale );
    foProcessor.setData( new ByteArrayInputStream( dataOut.toByteArray() ) );
    foProcessor.setTemplate( “example.xsl” );
    String xliffFileNameAndPath = getXLIFFFile( “example”, locale );
    if( xliffFileNameAndPath != null )
    foProcessor.setXLIFF( xliffFileNameAndPath );
    foProcessor.setOutput( "example.pdf" );
    foProcessor.setOutputFormat(
    outputFormat == PDF_FORMAT ? FOProcessor.FORMAT_PDF : FOProcessor.FORMAT_HTML );
    foProcessor.generate();
    The method getXLIFFFile( ) gets the relevant XLIFF file for the supplied report locale (if it exists) – the three test files that we used were Italian (example_it_IT.xlf), Spanish (example_es_ES.xlf) and Arabic (example_ar_AE.xlf).
    I imported the following JAR files from the XML Publisher release (version 5.6.2) into my Java application: collections.jar, i18nAPI_v3.jar, versioninfo.jar, xdocore.jar and xmlparserv2.jar.
    The output is OK for all three translations in HTML format, using a charset of UTF-8, and for Italian and Spanish in PDF format. However, the Arabic characters display as question marks in PDF format. The same issue occurs if I stream the output as a byte array straight to the HTTP response rather than save within a file.
    Note that the same RTF, XDT and XLIFF files produce the correct output in both HTML and PDF when executed within XMLPublisher.
    Thank you

    Hi
    I had a similar issue with arabic chars. With PDF layout, chars were appearing properly when preveiwd on local m/c, but as I implement file on server, it was displayed as ?????. I had raised a TAR 5798348.993 with oracle about this and they suggested to apply patch 4028294 Oracle Sourcing J Rollup and then patch 4182914. But later my users changed requirement and i cud not apply the patch to test if it works fine.
    But here, you have suggested that installing fonts would do. Is it really that simple? If yes, dont know what is that patch for which I was told to apply.
    Regards
    Varun

  • Arabic characters don't appear correctly, why?

    Hi all,
    i have a problem i think many others have. The problem is that i'm trying to render arabic text in JDeveloper9i and Win2000 proffisional, but the arabic characters are rendered as question marks, although i have set the encoding option of the compiler to many encodings that support arabic and select several fonts that support arabic also, and even i have set the system locale to Saudi Arabia locale but the problem still exists. the very strange action i noticed that i can write arabic in the editor and the property inspector but after saving the file (.java or .xml or any) and then closing and reopening the file, the arabic characters are displayed as question marks, may be the editor encoding and the OS encoding are defferent? so i set the encoding option the "default", but the problem still exists. I don't know exactly, but if any one has an answer or a solution, he is welcome.
    TIA to all

    You have a byte order mark (BOM: ) in the file to specify the encoding, but the server may be configured to send the file as western iso-8859-1
    *http://en.wikipedia.org/wiki/Byte_Order_Mark
    Firefox ignores the encoding in a meta tag and BOM directions if the server sends an encoding via the response headers. <br />
    It is usually best to make sure that the editor doesn't add such a BOM at the start of the file.
    If necessary then you or visitors can change the currently used encoding to Unicode.
    *Firefox > Web Developer > Character Encoding
    *View > Character Encoding

  • Java, Oracle, and Arabic Characters

    Hi,
    I need to run some Forms fmb files that contain Arabic characters through Oracle's forms to xml converter (frmf2xml.bat). The XML that is generated by the utility contains strings such as "رقم الموظ�" instead of the Arabic characters I was expecting.
    The XML output by frmf2xml.bat is encoded as UTF-8.
    My NLS_LANG is set to AMERICAN_AMERICA.UTF8. The characters display fine in Forms Builder.
    Is there another localization setting I need to make with the conversion utility or even with Java itself?
    Any insight or comments appreciated.
    Dave

    On a related note, I am seeing a couple of different types of 'incorrect' characters based on different NLS_LANG settings.
    If it is set to AMERICAN_AMERICA.UTF8, I get characters like this:
    رقم الموظ�
    If it is set to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, I get characters like this:
    ÑÞã ÇáãæÙÝ
    Do any of you know what these characters are?
    Thanks for any insight.

Maybe you are looking for

  • SAP_COLLECTOR_FOR_PERFMONITOR background job cancelled in SM37

    Dear all , One of the scheduled background job has been  cancelled . Kindly check the below loga and Background job details . Job name        SAP_COLLECTOR_FOR_PERFMONITOR Job class       C Status          Canceled (ABAP Program Name           RSCOLL

  • Swf. from flash cs5.5 not showing in IE

    http://www.dissbike.eu/e-bikes/ I've no idea why I can't see at all my swf (bottom of the page) and why is white in IE 7 & 8 . I presume that it has something to do with flash publishing non IE compatible swf. I will really appreciate any help Of cou

  • My Thunderbolt display is no longer powering on. I don't have the green light on the charging cable.

    I came back from a trip, and there was no power being supplied to my Thunderbolt dispay. I checked all of the cables and powercords, but nothing seems to re-establish power to the system.

  • SLD error coming . Pls help

    In Design when I click Import Software Components version I get error Unable to read software component versions from System Landscape Directory "sapp06ci:50000" Pls help Regards

  • Displaying  documents using adf

    hi: i've a table that hase a column that carries the link to the directory where my word documents are stored, iwant to display thsi column as a hyperlink that when user clicks it will open the word file,but when i add href tags around the column val