Problem with Arabic Character

Hi all...
I've a problem and if u please help me.
My system configuration is :
Windows 2000 Professional
Sun JDK 1.3.1
Oracle 8i
iplanet web server 4.1
iplanet app server 6.0 sp3 test drive
this is my code:
<%@ page contentType="text/html; charset=ISO-8859-6" language="java" import="java.sql.*, oracle.jdbc.driver.*"%>
<%
Driver driverUser = (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Connection connConnection = DriverManager.getConnection("jdbc:oracle:thin:@chorcl01:1521:gpa", "sak", "sak");
String stmSQL = "SELECT company_name FROM transaction_header";
PreparedStatement pstmStatementUser = connConnection.prepareStatement(stmSQL);
ResultSet rsResultSet = pstmStatementUser.executeQuery();
%>
<html>
<body>
<%
String vararabic = new String(rsResultSet.getString("company_name").getBytes(),"ISO-8859-6");
%>
<table>
<tr>
<td><%= vararabic %></td>
</tr>
</table>
</body>
</html>
When I run this page, I just see some Question Marks (?) insteas of the correct characters(the field filled with Arabic characters).I test this page with utf-8 and wimdows-1256 but nothing happens.
but still there are question marks.
The Default encoding of installed JVM is Cp1252, I change it to utf-8 and windows-1256, nothing happens....
I don't know what's my problem, please HELP...
Thanks
Mani

Hi Mani,
You are using test drive phase 3 which only allows ezsetup. You can view the Arabic characters by enabling ii8n. This option is avoilabe with custom installation. But in test drive custom installation is not enabled. So you can not view Arabic characters. You can do so with test drive on solaris.
Thanks
parsu

Similar Messages

  • Problem with Arabic character in Servlet !!!! please help

    hi all ,
    this is my servlet code
    ====================================
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class P extends HttpServlet
         public void doGet ( HttpServletRequest rq , HttpServletResponse rs)
         throws ServletException, IOException
              PrintWriter pw = rs.getWriter();
              pw.write("<Html> <Head> <Title> Hello </Title> </Head>"+
              " <Body> Arabic text </Body> </Html>");
    but when i try to see it in the browser ( if i replace "Arabic text" with arabic word) i just see ??????
    instead of the arabic characters !
    can y help please ...
    Ibrahim >>

    Hi,
    May this forum will help or try poting at the website below.
    http://forums.java.sun.com/forum.jsp?forum=16
    Website:
    http://www.thesoftwareobjects.com

  • URGENT Problem with Greek Character from an Oracle database

    Hello, I am having a serious and urgent problem with the character settings of an oracle database (8.1.7). The database is sitting in a solaris unix server and when we run the env command we have the following in the NLS_LANG parameter: AMERICAN_AMERICA.WE8ISO8859P1 (I do not know if this is helpful). When I retrieve data from oracle database (through a VB.NET 2005 program)to a dataset I use a special font in order to see the greek characters (HELLASARIAL). But when I am trying to save these data to a TXT file the greek characters are like Chinese to us. I tried several encodings (System.Text.Encoding.GetEncoding(869)) but without success. Can someone tell me how to convert the oracle greek characters during the selection or during the saving to the TXT file?
    Please respond as fast as you can.
    Thanks in advance

    Here is the answer of the microsoft:
    I have the information that you have a VB.Net 2005 application connected to an Oracle database 8.1.7.4 hosted on a UNIX server.
    This database has the CharacterSet WE8ISO8859P1.
    When retrieving Greek characters from this database in the application, you cannot see them.
    Could you please send me a screenshot of these characters in the .Net application?
    Are they displayed as gibberish, or as inverted questions marks (?)?
    I already had similar cases with Hebrew characters hosted on an Oracle database.
    These characters were displayed as questions marks on the client side.
    This is due to the fact that System.Data.OracleClient is using the Server CharacterSet to display the characters.
    If your Greek characters are not stored in the WE8ISO8859P1 characterset, then they won’t display correctly on the client-side.
    This is different from OLEDB where you could interact on client side by modifying the NLS_LANG parameter in the registry HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0.
    The client NLS_LANG and the server CharacterSet had to match in order to correctly display the data, and avoid SQL*NET conversion.
    So there are two solutions to your case:
    - The first one is to create a new database using the P8 characterset. The Oracle .Net managed provider will so be able to use it and display the characters correctly.
    - The second one is to use the OLEDB.Net managed provider, and then use OLEDB for Oracle provider. OLEDB will take care of the client NLS_LANG registry parameter.
    Would it be possible to test your application against an Oracle database with WE8ISO8859P8 characterset?
    Would it be possible to test it with the OLEDB .Net managed provider, and after checking the NLS_LANG client registry parameter?

  • Problem with Arabic font: In certain contexts, when writing Arabic with vowel signs (fatha, damma, kasra, sukun) a sequence of sukun   fatha/damma etc. would reverse automatically. Is this a known bug?

    Problem with Arabic font: In certain contexts, when writing Arabic with vowel signs (fatha, damma, kasra, sukun) a sequence of sukun + fatha/damma etc. would reverse automatically. Is this a known bug?
    Example: عَيْنٌ
    would automatically convert to عَيُنْ
    Funnily, it doesn't seem to happen here, but it does when entering text in a web interface (using Firefox, font Bayan) and when using Text Edit.
    Seems to be a problem of a specific font, as e.g. Arial MS Unicode works fine. Any hints?
    Thank you!

    Musaafir wrote:
    I've no idea how i can even start using arabic vowels on Microsoft Word for Apple
    You can't do Arabic on MS Word for Mac.  This app has never supported RTL scripts, so you need to use something else.  Mellel is best, but Pages 5, TextEdit, Nisus Writer, Open/LibreOffice should work OK.
    You switch between languages by using the "flag" menu at the top right of the screen or by using the keyboard shortcuts apple/command plus space.  Go to system prefs/keyboard/shortcuts to make sure that is activated.
    To see which key does what, you use Keyboard  Viewer.
    http://support.apple.com/kb/PH13746
    You place vowels on letters by typing the key for the vowel after the key for the letter.  The vowels are on the option/alt keys, option/alt + a gives you َ

  • Problem with arabic in 5610xpressmusic

    hii
    i have a problem with arabic language .someone help pleaz how i can read arabic text in my nokia5610xpressmusic

    Take it to a nokia care point and ask them to install the arabic language pack for you.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

  • Adobe forms - problem with the character "9"

    I have the problem with printing Adobe forms that were introduced with Russian country version.
    Funny enough I have no problems with russian characters. They all print all right.
    We have however the problem with character "9". On the preview of the pdf it looks ok. When I print it from PDF preview it prints ok. But when I process it for sap to the HP output device (device type HPLJ4) "9" gets replaced with "<".
    Has anyone experienced this problem?

    ok, you're right. But, my problem is a little bit different :
    I would like to replace the "\n" character (new line) by the 2 characters "\n".
    I test this source code :
    String tmp = "First line\nSecond line";
    tmp.replaceAll("\n", "\u005C\u005Cn");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\n");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\\\n");
    System.out.println(tmp);
    The 3 results are the same :
    First line
    Second line
    I never have "First line\nSecond line".
    Best regards.
    K96
    PS : The objective is to write the string in a SQL request.

  • Problem with a character in an external table

    I have Unix Sun OS 5.8
    I received 1 file with data. The problem is that this file has a character ' ' in the end file then the charge has an error. The character in the end file is in hexadecimal: 0A, 1A.
    Then I have an External table and I put the the clause LOAD WHEN (COMARC != ' ') but when I edit the external table I see LOAD WHEN (COMARC != '.').
    And the last record with the ' ' character doesn’t filter.
    Note: the character isn't a space ' '. It is the hexadecimal: 0A, 1A
    What I have to put in the LOAD WHEN (COMARC != '??????????') to filter this character?

    I put LOAD WHEN (COMARC != x'0A1A') but I receive the error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "single-quoted-string": expecting one of: "and, not, or, )"
    KUP-01007: at line 3 column 26
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    If I put:
    LOAD WHEN (COMARC != ' ') for example I don't received any error!
    What happens?
    Thanks!

  • Problem with slash character in CONTAINS queries

    Hi there,
    i've got a problem with a CONTAINS query using Oracle Text.
    The following query works fine:
    select col1 from my_table_text where contains(text,'%02%')>0;
    When i'm trying the query
    select col1 from my_table_text where contains(text,'%02/%')>0;
    the following error occurs:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50937: query too complex
    I didn't find anywhere that the slash has a special meaning (escape character or something else). This occurs only when the slash character is positioned immediately after or before the % operator. The search string '%0/2%' works.
    Oracle version: 9.2.0.1.0
    OS: Solaris 8 SPARC
    Maybe someone can help me.
    Thanks in advance,
    Chris

    Hi Chris,
    I think you want to search for all words having '02/'.
    Am I right? In that case try using '02//'
    Yes. '/' means escape character. So when it finds '/%' it tries to escape '%'.
    Hope this helps.
    Regards,
    Anupama

  • Problem with arabic fonts

    hi , i just downloaded photoshop and i made it middle east for the arabic & i installed a library of arabic fonts , the problem is ps writting any arabic  text with those fonts wrong  and it`s very heavy while writing  but he is writing normal the arabic text with mac fonts , can this issue fixed or can i rest my fonts ?
    hint --> as i`m new in mac i put the arabic fonts in many folders :
    (library -- fonts)
    (fontbook -- all fonts)
    (fontbook --- user)

    You normally have to use Mac fonts when writing Arabic.
    For problems with stuff made by Adobe, best search/ask in the forums run by them:
    http://forums.adobe.com/index.jspa

  • Problem with Arabic text firefox 8.0.1

    http://imageshack.us/photo/my-images/706/firefont1.png/
    http://img706.imageshack.us/img706/2871/firefont1.png
    http://imageshack.us/photo/my-images/192/20000t.png/
    the problem with fire fox only in IE its right and on fire fox 3.6 is right !
    =============
    Please note that<br />
    I tried some solutions like this https://support.mozilla.com/en-US/questions/871124?s=arabic&r=0&as=s <br />
    and this<br />
    https://support.mozilla.com/en-US/questions/808963#answer-169530
    and i did not find the name he mentioned but find that
    gfx.font_rendering.harfbuzz.scripts
    thanks in advance

    having same problem here, over and over getting popups saying Windows Installer is, "Preparing to install," then, "Please wait while windows configures Itunes," then finally, "You must restart your system for the configuration changes made to itunes to take effect," etc. Do I have too many of the previous versions hanging around? Thanks!!!!

  • Problems with arabic

    I noticed 2 problems using TFL with arabic text:
    1- While writing arabic text and pressing the direction keys
    to move the cursor - it moves in the opposite direction.
    2- The double quotation mark : " appears as single quotation
    mark: ' when press (send to stage) button.
    Any advice?

    Thank you robin for your reply
    quote:
    Originally posted by:
    robin.briggs
    Cursor movement is in the direction of reading order, not
    visual order. So the right arrow goes forward in the reading order,
    which will move to the left in right to left text.
    No sir, that is wrong, in arabic or in any language right
    arrow means move to right - left arrow means move to left (not
    forward and backward) !
    I am arab, an have used a lot of arabic editors/word
    processors (Notepad, MS Word,..etc) - Adobe should fix this.

  • Instant Messenger has problem with disorder character

    Hi all,
    We have problem with some disorder character in IM.
    Actually it happens with the name of contact. We use Chinese version, all are ok except the name of the user, it's strange. We also find the codeset is UTF-8, but only name perform a disorder problem.
    Any idea? Thank u in advance.

    Update:
    Chinese words can be typed and display properly except the name of the speaker, just like MSN, in the content we can see:
    $&%& : hello, <some chinese words>
    @#$^&: hello, ...
    This is the problem.

  • Playlist Problem With Turkish Character Set (Windows-1254 or ISO 8859-9)

    I'm using my x-fi 2 just for 2 week and sicked and tired it's problem. Now i have a problem with playlist. If my mp3 or m4a files or folder names have turkish character playlist's seems empty but i can find the files under albums and artist name sectors.
    My question is the any way to solve this problem. Folder names is not problem but file names i can not change all of them. Please help.

    meraba ankara yasiyorum.Sizinle mail araciliyla görüsmemiz mumkun mu?
    e_mail: [email protected]
    Bilgisayırıma 10g express edition yükledim .Bi de ODT for 10gXE (ADD-in) yükledim.Ama
    connect e basınca veritabanına .net den baglanamıyorum username yada password yanlis diyor.string name express edition icin nedir..net 2003 bilgisayarima yüklü.
    .net ve oracle kullanarak bir proje yapmak istiyorum.Yardimci olabilirmisiniz
    saygilar..

  • AJAX AutoComplete problem with arabic

    I'm using Ajax AutoComplete component in my project by creating the String array (String[]) from a table created in database
    The Ajax AutoComplete component work fine with English data but when working with Arabic data it gives me an empty list...!!!!
    does any one know why this is happening with Arabic data?
    this is my code for creating the string array:
    public String[] getNames() {
            RowKey rowKeys[] = namesDP.getAllRows();
            names =  new String[rowKeys.length];
            for (int i = 0; i < rowKeys.length; i++) {
                namesDP.setCursorRow(rowKeys);
    names[i] = namesDP.getValue("NAME").toString();
    return this.names;
    }NAME is the field that holds the English data and for Arabic i just change it to NAME1 which holds the Arabic data                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi There,
    Creator will be EOLed soon, Netbeans is the latest version of Creator. Pls post your question on NB mailing lists at http://www.netbeans.org/community/lists/top.html for better response.
    Thanks
    K

  • Problem with Arabic in awt

    Hi all,
    First off, I am forced to use JDK 1.18.
    I am having problem in displaying arabic, both through AWT as well as at the console. My desktop (Windows XP) supports arabic.
    The following does not do much. It was just supposed to show how it works. It displays rubbish at both the console, as well as in the frame title/button label. Even when I changed the button label to a unicode character, it came out as an empty square. It works fine with an english locale.
    public class Driver {
    public static void main (String args []) {
    java.util.Locale newLocale = java.util.Locale("ar", "AE");
    java.util.ResourceBundle menus = ResourceBundle.getBundle(PROP_FILE_PREFIX, newLocale);
    System.out.println(menus.getString("MainMenu"));
    java.awt.Frame frame = new java.awt.Frame(menus.getString ("MainMenu"));
    frame.setLocale(newLocale);
    frame.setSize(200, 300);
    java.awt.Button button1 = new java.awt.Button();
    button1.setFont(new java.awt.Font("Arabic Transparent",0,12));
    button1.setLabel(menus.getString("MainMenu"));
    //button1.setLabel("\u0627");
    frame.add(button1);
    frame.show();
    The contents of the property file I was trying to read is:
    MainMenu = ������� ��������
    Channels = �������
    SmartCardInformation = ������� �� ������� ������
    ParentsControl = ����� �����
    Languages = ������
    Setup = ����� ��������

    The first thing you need to do is to run native2ascii on your properties file (it comes with the JDK).

Maybe you are looking for

  • Loved my macbook pro for months, now it's a fire hazard!

    What in the ****, my mac is on FIRE. I am even using a small thin wooden lap desk and can almost smell the burning wood. When I say hot, I don't mean warm...I mean burns on the top of the knee kind of situation. Yes, I feel the burn, but I am working

  • R12 tables

    Hi , we are upgrading the 11.5.10.2 to R12.1.3 . I was found some of the tables got obsolete in 11i and changed those in R12. and i want know join condition between following tables. note: i want know join condtions between these below tables. select

  • Is the Clip Distortion plugin included in the Logic Express 9?

    Hi I'm thinking of buying Logic Express. Is the Clip Distortion plugin included to the Express edition of Logic 9? I need that to create some cool hardstyle/hardcore kicks. Regards, Jostein

  • Why can't I save documents in dreamweaver???

    I have CS6 and am using windows xp. I made some edits to a page on my website and saved the document. When I tried to open it up again in dreamweaver it showed nothing. Nothing in Design view, nothing in code view. However, if I went to the local loc

  • Premiere CS6 corrupt project files / autosave files

    Hi Sorry for my English. I close my project one evening and next day i could not open it as Premier say  "An unknown error occurred while opening the project" & "importer raported generic error" Just one file (from 5)  auto saves works but is to outd