Arabic characters not displaying in Forms

Problem :
I have a xml in the unix server machine and I try to read that xml file through a dba job which is using simple utl_file functionality.
To read the file and put in a table of column CLOB.
I'm checking it from front end Oracle 10g form 's text item , I'm getting junk characters like ???????
I tried to check whether the data stored in db is correct by running below program to generate message to the text file
BEGIN
for x in (
select message from tb_xml_in where xml_sr_no='123'
loop
   clob_to_file( '/test/debug/',
   'test' || '.txt',
   x.message );
end loop;
END;I transferred the test.txt from unix and checked in notepad of my machine where Arabic character is enabled
and it is showing me Arabic character.
Which means its storing correct in db but not able to show it correct in through FMB.
Database details:
NLS parameter is
NLS_LANGUAGE          AMERICAN
NLS_TERRITORY          AMERICA
NLS_NCHAR_CONV_EXCP     FALSE
NLS_CHARACTERSET     AR8MSWIN1256
NLS_NCHAR_CHARACTERSET     AL16UTF16
NLS_LENGTH_SEMANTICS     BYTE
NLS_RDBMS_VERSION     10.2.0.4.0
select * from V$NLS_VALID_VALUES where parameter = 'CHARACTERSET' and value like '%UTF%';
PARAMETER     VALUE          ISDEPRECATED
CHARACTERSET     AL24UTFFSS     TRUE
CHARACTERSET     UTF8          FALSE
CHARACTERSET     UTFE          FALSE
CHARACTERSET     AL32UTF8     FALSE
CHARACTERSET     AL16UTF16     FALSE
select * from V$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      ProductionChanging NLS Characterset of db is not currently recommended as the production database is very huge.
Can you please help on how i can resolve this issue.

even though the NLS_LANG is AMERICAN_AMERICA.US7ASCII in formconfig.
My utl_file.Get_line not reading arabic character in my xml file.
since my incoming xml is in UTF8 format, I used following code to read xml as raw data type and converting format from UTF8 to database format(i.e., Arabic) and I'm able to see Arabic from front end
DECLARE
v_Data1 varchar2(32767 BYTE);
v_Data2 varchar2(32767 BYTE);
v_Raw1 raw(32767);
v_Targetcharset varchar2(40 BYTE);
v_Dbcharset varchar2(40 BYTE);
v_inf UTL_FILE.FILE_TYPE;
l_UTL_DIR varchar2(1000) := '/test/arabic/in/xml/';
v_Filecharset varchar2(100);
v_nchar NVARCHAR2(4000);
BEGIN
v_Filecharset := 'AMERICAN_AMERICA.AL32UTF8' ;
v_Dbcharset:= 'ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256' ;
dbms_output.put_line('here1');
V_Inf := UTL_FILE.FOPEN(l_UTL_DIR,'testing.xml', 'R',32767);
dbms_output.put_line('here2');
UTL_FILE.GET_RAW(V_inf, v_Raw1, 2000);
dbms_output.put_line('here3');
v_Raw1 := UTL_RAW.CONVERT (v_Raw1,v_Dbcharset,v_Filecharset);
dbms_output.put_line('here5');
v_Data2 := utl_raw.cast_to_varchar2 (v_Raw1);
dbms_output.put_line('here6');
update sample_test set sample_col1 = v_Data2
where sample_col2 ='XXXXX';
UTL_FILE.FClose(v_inf);
commit;
EXCEPTION
WHEN OTHERS THEN
     dbms_output.put_line('SQLERRM ='||SQLERRM);
End;
/Edited by: Leonard on Aug 31, 2012 4:32 AM

Similar Messages

  • Arabic Characters not displaying properly in SQL+ Enviorment

    Hi,
    I have Oracle 8i ,I am able to insert and view arabic characters properly from asp and asp.net application but whenever i tried to run sql scripts to fetch arabic data it displays only reverse'?'sign in place of all characters .....
    Is there any particular setting to be ..... If yes please also mention the steps.
    Bye

    May I assume since you're using ASP that you're on Windows? The only way I'm aware to be able to display Arabic characters on Windows would be to set your Windows language to Arabic. This will be somewhere in the Control Panel, but without knowing what version of Windows you're on, it's hard to be more specific.
    In general, SQL*Plus is not a wonderful tool for viewing non-English data.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Arabic characters not displayed properly in the preview mode

    Hi,
    I am preparing a tool in arabic and all arabic characters seem to be displayed correctly in the design mode, but become illegible in the preview mode or when exported in flash (swf). Help much appreciated.
    Gregor

    Hi Gregor
    I think you're out of luck. There is no Arabic language pack for Xcelsius.
    When you're in design mode, you're using the Windows OS features, but when you try to preview or export then Xcelsius begins the process of converting the xlf to a swf. And since there is no lang pack it doesn't know what to do with the Arabic characters.

  • Arabic characters are displaying as question marks in forms 10g

    We have migrated our application from forms 6i to forms 10g and now in forms 10g the arabic characters are displaying as question marks while it displays correctly in the old application using forms 6i. I have already set the character set to AR8MSWIN1256 in the registry, but it didn't help. Somebody please help.

    @ Sarah, Al-Salamu Alikum We Rahmatu Allah we Barakatu,
    Sarah Habibty, why new installation ? In order to select a new suitable character set !!!
    Then creating a new instance from the db is a better alternative since it saves time,effort and another back up of his current db is exist safely if needed for any purposes in the future.
    @Amer,honestly speaking...
    Modifing ur NLS_LANG to > AMERICAN_AMERICA.AR8MSWIN1256
    Works for me in both Arabic and English data in 2 applications.This works in my pc.But it didn't works at my boss pc this can happened don't have any reason for that.!!!!
    i spent lot's of time trying to search but what i had got is that solution i suggested by a friend of mine.
    Now please could you advise me, is it better to create a new instance of database as Amatu Allah has suggested or is it better to change the character set through sql as some others have suggested? Again i suggest to select the short cut way ; to reset the character set through sql after taking a back up from ur data that is currently exist.
    then retest again doing the select and test ur data input and retrieval.
    SQL> select * from v$nls_parameters
    2 where parameter in ('NLS_CHARACTERSET','NLS_LANGUAGE');watching the output if it works that's fine saving ur time & effort .
    if not working with the correct NLS_CHARACTERSET then use my previous solution.
    Hope this helps...
    Regards,
    Amatu Allah

  • The pdf chinese characters not display (11G  WLS_PERORTS)

    My Database:TRADITIONAL CHINESE_TAIWAN.AL32UTF8
    Environment:xp
    According to:http://docs.oracle.com/cd/E24269_01/doc.11120/e24479/pbr_pdf002.htm#BABCCEAB
    C:\Oracle\Middleware\asinst_1\config\FRComponent\frcommon\tools\COMMON\uifont.ali
    add a row
    [ PDF ]
    .....AL32UTF8 = "MSungStd-Light-Acro"
    But the pdf chinese characters not display,Why??
    http://ppt.cc/h-Tx

    kindly, make sure that you add the font path into your FORMS_PATH in regestery (if you are using windows) also put your font mapping ubder [ PDF:Subset ]
    for example:
    [ PDF:Subset ]
    times = "Barcd39.ttf"
    Arial..italic.Bold.. = "arialbi.ttf"
    Arial..italic... = "ariali.ttf"
    Arial...Bold.. = "arialbd.ttf"
    Arial = "arial.ttf"
    "Andale Duospace WT J" = "Aduoj.ttf"
    "Albany WT J"="AlbanWTJ.ttf"
    "Arabic Transparent"="artro.ttf"

  • Arabic numerals not displaying in Swing text components

    On a test system setup with Windows NT Arabic version, we had problems entering Arabic numerics into Swing text components.
    Other Arabic characters were displayed correctly, but numerals were all represented by Western characters ('0 to 9'). Even when using the "Alt-" method to enter the Unicode character codes via. the keypad, we still got incorrect characters.
    When using the keypad to enter the code '\u0660' (Arabic "1"), the code sent to the text component was '\u2022' (Bullet).
    We tried this on an English system and the same code was passed to the text component.
    Does anyone have any suggestions as to what might be the cause of this problem ?
    Thanks,
    Brian...

    hello!
    I am developing an arabic editor but i am unable to display the arbic numeric in swing text .Plz help me on this topic and send some code example on this topic.
    I have another problem about events i.e how can i handle the beckspace event, enter event, and spaceevent?
    plz send me mail .
    Thanx for advance.

  • Chinese and Korean characters not displaying in navigation pane

    I have an issue with Chinese and Korean characters not displaying on the tabs in the navigation pane:
    I have 2 RoboHelp projects (using RoboHelp 8 with the updates installed) to generate WebHelp, one in Simplified Chinese, the other Korean. The HTML files, .HHC and .HHK were sent out for translations. I have set the appropriate language in the project settings, everything almost works, except for the text on the Contents, Index, and Search tabs. (I'm not using a skin.) I have read in various threads that the lng file should be edited using the RoboHelp interface, and this seems to be the crux of the problem. The characters do not display correctly through the RoboHelp UI.
    The computer on which I generate the WebHelp is Windows Server 2003, and I do not have the language packs installed. (And am having problems getting hold of the language packs to install to see if this fixes the problem.)
    Aside from installing the language packs, is there anything else I can try to help resolve the problem? (The characters in the content are displaying as expected.)
    Any assistance is greatly appreciated

    Perhaps something in the Translation Info section of this page might help? (The specifics are for Japanese, but I believe the issue would apply to all double-byte languages).
    http://helpware.net/FAR/far_faq.htm#JapComp

  • Problems with Turkish characters not displaying correctly

    A user is having problems with certain Turkish characters in particular fonts not displaying correctly (as shown below).
    The two fonts (Gill Sans and Helvetica LT CondensedLight) are used for English language marketing material.  Ideally, for continuity, the same font would be preferred for our Turkish language marketing material rather than changing it to a similar font.
    Helvetica LT CondensedLight
    Turkish character “ İ ” does not display correctly in either Word or InDesign.
    Gill Sans
    Turkish characters “ ş ” and “ ğ ” display correctly in Word but not InDesign.
    My questions are:
    1. For Gill Sans, why are the characters not displaying in InDesign but are in Word?
    2. I've noticed here: http://www.webtype.com/font/gill-sans-family/#glyphs-tab that the required characters are available within the Gill Sans font.  Is this because the font is newer and includes the additional characters?  Would this work in InDesign?

    One of the big differences between InDesign and Word is that Word will happily substitute glyphs without telling you. So, unless your installs of Word and of InDesign are using different versions of Gill Sans (which is possible, BTW) then your s-with-cedilla and your g-with-macron are actually not in Gill Sans but in some other font. I'm guessing Arial.
    It's possible that you have more than one Gill Sans installed (e.g. one in your Document Fonts folder and another in your system fonts folder) that have different glyph complements. Gill Sans has been around a long time, and the version I have from the 90s has no Turkish support whatsoever.
    As far as the capital-I-with-dot, you can check your glyph coverage in a variety of ways. In both InDesign and Word, you can open up a window that shows you all of the glyphs in a font. In InDesign, find it in Type -> Glyphs. In Word, it's called "Insert Symbol" and you can find it in Word 2010 by going to Insert -> Symbol -> More Symbols. I am guessing that the answer to this question is simply that your cut of Helvetica LT has no cap-I-with-dot. You'd need to pick a font that actually has support for Turkish. On WIndows, I use a very full-featured freebie called BabelMap to check font coverage. They have a Web version here:
    http://www.babelstone.co.uk/Unicode/babelmap.html
    but I personally prefer the downloadable .exe file.

  • UTF-8 characters not displaying in IE6

    Dear Sirs,
    I have an issue in displaying UTF-8 characters in Internet explorer 6.
    I set up my all jsp pages encoding as UTF-8.
    Any language characters(like chinese,tamil etc) perfectly dispaying in firebox browser.
    But in internet explorer, the characters are not displaying.it displays like ?! ..
    Could any body help me out?
    Thanks
    mulaimaran

    Thanks Viravan,
    But, I have added this line in my jsp before html tag.
    <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
    After html tag,i added this meta tag.
    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
    So, the UTF-8 encoding is capable to show different language characters in firebox browser.
    But In Internet Explorer 6 other language characters not displaying..
    > jsp sends out the UTF-8 BOM (hex: EF BB BF) before
    the HTML tag.I cant understand this line.I m new one to java.
    So ,please help me out.
    Thanks
    mullaimaran

  • Problem with Loader Components, can not display my forms properly

    Here is the problem (my God, my customer waiting for his web
    site:( ... ) I have a form made in CoffeeCup Flash Form Builder
    (Nice one...).Now this form with fields like name, sec name age,
    etc I want it to apear into my main screen when I press the button
    "Reservation" and then the customer could fill the fields and sent
    it to my mail. I tryed with the Loader Component, I mean when I
    press the button then starts "playing" the form.swf. BUT the Loader
    can not display the form properly specialy thinks like drop down
    menus in the form, or check boxes....It just show me the
    form....The Flash Form Builder gives me 4 files like: form.swf,
    form.html, form.php and form.xml. Any solution on how my customers
    complete this form with no problems?
    THANK YOU A LOT!

    Dear,
    You have to following these step to run form on firefox,
    Run the following file,
    1) C:\DevSuiteHome_1\jinit\jinit.exe
    2) jvm.dll copy this file to the following path,
    C:\Program Files\Oracle\JInitiator 1.3.1.22\bin\hotspot
    3) And firefox connection settiong with 'No-Proxy'
    The above setting it will help full you to run your form on firefox.
    Thank you,

  • Arabic is not displayed properly in Oracle Forms...

    Hi,
    I'm using oracle 9i database and forms 6i. mt database contains arabic data and the character set of database is "UTF8". when i display the data in arabic in forms, it is giving junk characters. i set the NLS_LANG for forms to UTF8 in the registry. still the arabic is not showing properly.
    pl. tell me how i can resolve this problem.
    regards
    george

    Hi Gregor
    I think you're out of luck. There is no Arabic language pack for Xcelsius.
    When you're in design mode, you're using the Windows OS features, but when you try to preview or export then Xcelsius begins the process of converting the xlf to a swf. And since there is no lang pack it doesn't know what to do with the Arabic characters.

  • Arabic text not displaying correctly in Win Server 2008 R2

    Hi,
    We have an .mdb database stored on our Windows Server 2008 R2 server but when we view the contents some of the text has strange characters.
    When we view the same db in Windows Server 2003 we do not have these characters. I'm not sure what exactly we need to do to correct this issue..
    Any suggestions welcome..

    Hi,
    Thanks for your post.
    When you open a Web page or a text file that contains a string of Arabic characters, the string is not displayed correctly. This issue occurs when the following conditions are true:
    The Left-to-Right Override (LRO) Unicode control character is used in the string of Arabic characters.
    You specify a font that is not Simplified Arabic Fixed.
    Please apply the hotfix below:
    Incorrectly displayed Arabic characters in Windows 7 or in Windows Server 2008 R2
    https://support2.microsoft.com/kb/976525?wa=wsignin1.0
    And check the result.
    Regards.
    Vivian Wang

  • Arabic characters not rendering properly

    My code is here.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" backgroundAlpha="1" backgroundColor="white">
    <mx:Label text="البريدا إللكتروني" fontSize="36"/>
    </mx:Application>
    And its output is here (Note the Arabic rendering issues).
    Can someone assist me to fix this issue in a quick way?
    Many thanks for any suggestions.
    Nith

    May I assume since you're using ASP that you're on Windows? The only way I'm aware to be able to display Arabic characters on Windows would be to set your Windows language to Arabic. This will be somewhere in the Control Panel, but without knowing what version of Windows you're on, it's hard to be more specific.
    In general, SQL*Plus is not a wonderful tool for viewing non-English data.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Characters not displaying properly

    I can't find how to properly enter and display certain chars from my db to my jsp page.
    For instace, the word "Li'l" is displaying as "Li�??�?��??l".
    things like TM,R arent working either.
    the "'"(apostrophe) is entering into the DB without a problem- but it wont display. The (TM) is not storing or display properly.
    Is there anyway to copy text directly from wordpad into a textbox and have it store in mysql and display in jsp correctly?
    Also, this might be a question for the mysql section:
    If i'm doing a query like thisSELECT ID, brandName, productInformation, productName, productImage FROM blahblah.uk WHERE brandName = '" + brand + "'"; and " brand + has an apostrophe- the query screws up. Is there a way around it at all?
    here is my entire DB connection code.
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user  + "&password=" + pass;
    Connection Conn = DriverManager.getConnection(conn);
    Statement SQLStatement = Conn.createStatement();
    String Query = "SELECT ID, brandName, productInformation, productName, productImage FROM blahblah.uk WHERE brandName = '" + brand + "'";
    ResultSet SQLResult = SQLStatement.executeQuery(Query);
    %>
    <%
              while(SQLResult.next())
                     x_ID = SQLResult.getString("ID");
                    x_brandName = SQLResult.getString("brandName");
                    x_productName = SQLResult.getString("productName");
                    x_productInformation = SQLResult.getString("productInformation");
                    x_productImage = SQLResult.getString("productImage");
                    thanks

    May I assume since you're using ASP that you're on Windows? The only way I'm aware to be able to display Arabic characters on Windows would be to set your Windows language to Arabic. This will be somewhere in the Control Panel, but without knowing what version of Windows you're on, it's hard to be more specific.
    In general, SQL*Plus is not a wonderful tool for viewing non-English data.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Foreign characters not displaying

    Hi... I am developing a web app that includes a database of world cities, many of which have foreign characters in their names. The MySQL database is displaying the characters correctly, but when it comes to displaying them in drop down menus, the foreign characters are displayed as blank boxes.
    The application is a J2EE Java app.
    In the index.jsp file, in the html section, I have specified various types of character sets, including the standard iso-8859-1 and utf-8, but none make a difference.
    The home page with the drop-down menus is at www.your-astrology-report.com/index.jsp. From the pull-down menus, select "International", then "Greece", then "NON-ENGLISH FIRST LETTERS" and you'll see what I mean.
    The database code that puts the city names into the drop down menu is as follows, although as a fragment, it's incomplete.
    try{
         out.print("<select name='city'>");
         out.println("<option value='0'>Select Birth Town - Check Region!</option>");
         if(letter.equals("?")){
              q="select * from "+regid+" where country='"+country+"' AND city NOT RLIKE '^[A-Z]' order by city";
         } else {
              q="select * from "+regid+" where country='"+country+"' AND city LIKE '"+letter+"%' order by city";//city begins with letter
         ResultSet rst=execute_sql_query(q);
         int count=0;
         while(rst.next()){
              out.println("<option value='"+count+"'>"+rst.getString("city")+" - "+rst.getString("subdiv")+" "+SubDiv+"</option>");
              count++;
         out.println("</select>");
    I am very new to Java.
    Is there some basic way of telling either the query and/or the out.print statement to get, preserve, and display these foreign characters correctly?
    Please keep it simple! Like I said, I'm new to all this, and most of the Google queries I've made to try to figure this out have been gobble-de-gook to me! LOL!
    Thanks,
    Fartian

    Thanks everybody for your suggestions. So far, I'm sorry to say, none of your suggestions have helped, though.
    I suspect, though, that the reply concerning character streams (PaulClapham) holds the answer. I just don't know how to implement this in my case, i.e. how to apply this to the out.println statements in the previously given code block. My experience with Java is limited. Any ideas?
    I should probably tell you how all this is structured in terms of one file calling another:
    First we have the index.jsp (www.your-astrology-report.com/index.htm), which has dynamic input fields, the one in question being this:
    <td colspan="2"><div id="cities"><select name="city"><option value="">Select City</option></select></div></td>
          <td colspan="2">Select First Letter of City First!</td>div id="cities" refers to a function in a second file, xmlhttp.jsp, which is called by the dynamic input field located just above the "cities" field.
    Here is the function:
    function handleCityU(regid_letter_country){
         document.getElementById("cities").innerHTML="Loading cities...";
         url="internal_requestU2.jsp?regid_letter_country="+regid_letter_country.value;
         var xmlhttp=myXMLHttpRequest();
         xmlhttp.open("GET",url,true);
         xmlhttp.onreadystatechange=function() {
              if(xmlhttp.readyState!=4)return;
              document.getElementById("cities").innerHTML=xmlhttp.responseText;
         xmlhttp.send(null);
    }This function passes the variable "regid_letter_country.value" to yet another file that then parses the variable, requests the required database data, and creates the out.println statements that then populate the dynamic pull-down menu that displays the cities in the original index.jsp file.
    THIS IS WHERE I NEED IT TO BE DISPLAYING INTERNATIONAL CHARACTERS. The code for this part is what I originally posted.
    Help!
    Many thanks...
    Edited by: Fartian on Mar 20, 2008 7:49 PM

Maybe you are looking for