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.

Similar Messages

  • Special characters in java, oracle and html

    Hi,
    I'm working on a mini content management system and need help with dealing with special characters.
    The input are taken from html form which are then stored into a varchar column in oracle database.
    When i retrieve the data, some of the special characters have been changed to ??? and also
    fields with double quote are modified.
    I believe there two issues;
    1. dealing with special characters
    2. display special characters back in html form textfield after retrieving.
    e.g.
    This is the line with "quote" saved to database
    This is the line with "quote" retrieved from database
    This is the line with displayed in html text field.
    Any help will be much appreciated.
    Thanks in advance.

    Maybe you should try this couple of classes: java.net.URLDecoder and java.net.URLEncoder
    Andres
    Best

  • Java Editor and Unicode Characters

    I'm trying to use unicode characters in strings with the Java Editor.
    String myOption = "\u2666 " + myDirName;
    This works nicely, displaying a diamond in my web application. Source HTML contains a &9830;
    However, if I make changes in the Visual Designer (e.g., add a button), the \u2666 in my Java code changes to a diamond symbol. When that happens, I get a "?" in my web application.
    How do I prevent Java Editor from switching to the display character?

    Thanks for your response.
    After more research, I found that the .java file is corrupted. These means the problem is not related to the browser.
    When I have "\u2666" in the Java Editor window, I see "\u2666" in the .java file in Word Pad. This is properly compiled and the entity ♦ appears in the HTML.
    When the diamond symbol is in the Java Editor window, I see and ascii ? (character #3F). I get a ? in the browser. It is really a question mark (#3F) not an unknown character.
    So, it appears that when the JSP is changed by adding a button, the .java code is rewritten to disk but unicode characters are not translated properly. Or - something like that. If I could keep the ascii string "\u2666" from converting to the diamond, I would be all set.
    I can edit the Java Code, close, save and reopen all I want and the unicode character doesn't translate to the symbol. This ONLY happens when the JSP is modified.
    Any ideas?

  • Re: jpg files, Java, Oracle and Crystal Reports

    I developed an application that used about a half million TIFF's, they could have just as easily been JPG's, but TIFF's are lossless and JPG's are not.
    Basically we created a naming convention for the files that uniquely identified each and then segregated them into folders according to year and vendor.
    I stored the names in a SQL Table appropriately indexed and then we used the TIFF's in the application for printing and client display.
    It worked out very good, the SQL lookup was very fast, and leaving the files in the physical JPG format allowed us to cache them locally and have very litte code change for cache or server access. The application was all done in pure Java using JAI for TIFF access and the client was delighted with the speeds we achieved for document access, including scaling and printing.

    If you look at the statement of direction for BI tools from Oracle, you will notice that Oracle has made BI Publisher as their core "reporting" tool for pixel-perfect reporting. All thousands of Oracle Reports which are part of Oracle E-Business Suite have been or are being converted to BI Publisher. I personally don't have much exposure to BIP but I would recommend checking in the BIP forums which are very active. The report development paradigm is very different between Reports and BIP so traditional reports developers have a long learning curve with BIP. With the next release of OBIEE 11g coming out in July, there is hope that Oracle will provide a better layout editor for BIP.
    I would suggest putting in some time/effort/training into BIP rather than Oracle Reports since reports is essentially on life-support.

  • Adobe Air For Android and Arabic Characters

    Hello all,
    I have been working in an app for my andorid device and I crashed to the problem of writing arabic is my app, I am using flex 4.5 for my development and I couldn't find a way to write arabic even I tired an actionscript project same result, when I type it gives me squares, I tried to embed fonts even so.
    Note : testing app on the desktop arabic works !

    Use Arial Unicode MS for other languages to support not Arial. give it a try.

  • 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?

  • Problem by entering Persian\Arabic characters in String Control

    I'm working on a Jet Printer project. I must make an user interface using LabVIEW. This printer must print some Unicode characters on factory's products. Specialy Persian and Arabic characters.
    But it seems that there is not a string control with capability of support Persian\Arabic characters which accept and show this characters correctly.
    I also add "UseUnicode=True" to LabVIEW.INI file. But it was not solved.
    I'm using Windows XP SP3 and LV2009

    ChristianL has written an excellent primer on Unicode and LabVIEW. Also, I have some sprinkled posts things you need to watch out for while using Unicode and LabVIEW.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • 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.

  • 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

  • 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

  • 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 Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • Displaying both Hindi and Arabic numerals in Oracle 10g PDF report

    Hi….
    Oracle experts told us to ask “In how many ways we can do it in oracle?” instead of asking “Can we do it in Oracle?” , I need ONE way to solve the following problem, it toke to much time and I don’t know if it can be solved !
    The problem:
    Can we print in - Oracle 10g reports - a PDF report with BOTH Hindi and Arabic numerals?
    Well, at design time everything is fine, you can use right-to-left, left-to-right and the print preview is showing BOTH Hindi/Arabic numerals fine, but when I tried to produce it as a PDF, unfortunately its not, means its either all Hindi or all Arabic numerals !
    I tried everything possible, environment variables: NLS_LANG, REPORTS_BIDI_ALGORITHM, and REPORTS_ARABIC_NUMERLS, setting Digit substitution to Context in windows regional settings, uifont.ali is modified properly according to metalink note, but nothing solved this issue!
    I noticed something, when I used the DESTYPE=printer and DESNAME=PDF995 (one of the PDF printers) , it worked fine , means the problem could be in the generic PDF generator of the Oracle reports server,
    But even with PDF995 you still need to feed the file name, which is not suitable for multi-user environment that need the report to be displayed via web browser.
    Does anybody face this before?
    Edited by: khaled.w on May 24, 2010 7:29 AM
    Edited by: khaled.w on May 24, 2010 7:35 AM

    Don't tell so much.
    Check the following link
    1. PDF Reports in Unicode / Arabic & English | Oracle Community
    2. OraFAQ Forum: Reports & Discoverer » Report in Arabic(pdf) (merged)
    3. Arabic Report generated to text file giving Jun... | Oracle Community
    Hope this helps
    Hamid

  • Oracle Report ouput is coming in english and junk characters

    Hi ,
    I am facing an issue with oracle report output in R12.
    The Report out is coming in english and junk characters.
    this report is custom report.
    Migrated from 11i to r12 instance.it is working fine in 11i with output as PDF.
    Sample out put is attached.

    Pl see if MOS Doc 1321874.1 is relevant

Maybe you are looking for

  • Airplay on iPad and iPhone 4s

    Since upgrading my iPad Air and iPhone 4s to iso7.1 I cannot find the icon for airplay. It is not on the control panel, airdrop is there, but I want to use the iPad with Apple TV. Airplay is turned on on the AppleTV.  Any ideas?

  • Long file name support on DVD??

    I'm not a hardware or software person, but one of our guys who is is having trouble getting a DVD in a V120 running Solaris 9 to consistently recognize long file names on DVDs that were created on PCs running XP with various combinations Sony and Mem

  • How can I detect damaged tracks?

    My music hard drive crashed awhile back. Now some of the songs play fine, but others play partially and then change to white noise. Obviously the files have been damaged, but the file size has not changed and there is no way of telling which ones are

  • Source list is not getting in shopping cart

    hi friends, i am not getting the source list in the shopping cart for the particular material even though i am maintaining in backend and maintained in the web (vendors list) as a high priority vendor.To create a PO in the backend i need to maintain

  • Win XP SP3 で.11,5,502,110 がIE8のみ反映.FF16は11,4,402,287のまま

    初めて質問させていただきます. Windows XP Pro SP3 で.IE8.Firefox 16.0.2を併用しています. (1) http://www.adobe.com/jp/software/flash/about/ で.バージョン確認すると. IE8 : 11,5,502,110 FF16 : 11,4,402,287 と表示されます. 設定マネージャーは下図のとおり. (2) 同じベージでは. Firefox.Mozilla.Netscape.Opera(およびその他のプラグイン