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

Similar Messages

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

  • 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

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

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

  • Problem with Arabic scripts in Adobe writer

    Hi all ..
    the company I work in bought the adobe writer professional version 8 for the policies& procedures which all in arabic !!!!
    now we face a problem when convertingfrom pdf to wrod .. the script change to everything but arabic
    in additon .. editing arabic is a delima ! sometimes it writes over an existing words !! and with tables ..its a disaster . it can't keep writing inside the cell
    ( this happens all when the pdf is converted from a word document ) .
    final question is regarding security ?! .. can I impose a security on all the PDF on one server .. without having to do it for one pdf by another
    e
    please its soo critical to solve those issues since its for buisness requirment ..
    Thank u in advanc

    As I said its the acrobat professional is what I have ...
    and I nedd to have one copy of the prosedure not two in word and pdf !!!  ..
    and what about converting from pdf to word !! why it doesn't convert right ! and what is the solution !!
    Thnx for replying

  • I have a problem with arabic text in facbook im using firfox v5

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/856583]]</blockquote>
    I'm using Firefox web browser v5 and i can wright and reed Arabic text at all web sights. but when I'm trying to read or right Arabic text in Facebook i have a probable that every letter is separated and when i open Facebook with other browsers like chrome using same desktop the Arabic text appear without any problems.

    I am doing a newsletter which I have an arabic translation of in a word document. When I copy and paste into Illustrator it changes the font (it says times new roman in the word doc, but the illustrator version comes out times new roman but looks completely different ) and the right to left orientation to left to right. How do I fix this?
    Make sure your document language is properly set to Arabic in Word. Just typing Arabic and the document actuall being Arabic are two different things. Mismatches affect Unicode ranges, resulting in the wrong characters being copied to the clipboard. In AI, check the substitution options on the text palette and glyph palette as well as your global glyph protection pref.
    Mylenium

  • Problem with Arabic text with flash player 10 32bit under linux platforms

    Arabic encoding characters do not show correct in the right form at all linux distributions .
    note: with windows platforms, it shows arabic characters correctly.
    this video contains captions and subtitles, in the attachement two snapshots,
    First, show the arabic sentences in the right form with "swfdec mozilla" plugins.
    The other, show the arabic words with "adobe flash player 32bit" plugins,
    for example: Arabic font enconding cp-1256
    the character ب
      in the beginning of the word " بـ ".
    in the middle " ـبـ "
    at the end "ـب"
    isolated character "not in word "ب"
    the word
      كتب in the right form
    begin from right with " كـ "
    with adobe flash player
    ب ت ك
    it shows from left to right and use only isolated characters.
    I report to adobe and they response
    Hi Ghost,
    Since you do not have a 64 bit machine please proceed to reinstall the
    32 bit edition.
    For the current release version of Flash player 10, it does support
    Right to left, But you can’t use a text field on stage and have it
    work. When authoring the content in Flash cs4, you would have to use
    the Flash text engine. more information on that can be found here:
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS6C0BB8ED-2
    Thank you.
    Regards,
    Thomas S.
    Technical Support Engineer
    Adobe Systems, Inc.
    Get the answers you need, when you need them!
    Knowledge Base: <(><<)>http://www.adobe.com/support>
    Support Plans: <(><<)>http://www.adobe.com/support/programs

    I too am having this problem. On all of my linux distributions, including Ubuntu 8.04, 8.10, knoppix 5,1, fedora 8,9,10 flashplayer 10 is broken in the same way.  It reports that it cannot find webcam, and the settings dialog refuses to recognize mouse clicks.  I've poked around the web quite a bit and have not yet found a solution.  I saw the problem mentioned on an adobe bug reporting site and their response was to close the issue saying it wasn't repeatable on their system.  I tried to re-open it and my post was deleted without comment (I may have posted incorrectly or something)
    Looking here  and elsewhere I see that the problem is very common and I don't see any posted bug-fixes, or even acknowledgement that a bug exists.  Has adobe lost interest in being cross-platform compatible?

  • Problem with arabic in j2me!!!!

    hi all,
    i was developing a midlet that displays some arabic text , but it didn't neither on the real device nor the emulator, i got ???? instead, i finally found out that the problem isn't with the device nor the emulator but with the j2me itself coz when i tried printing this text by System.out.print() i got question marks too, though my OS supports arabic normally!!!
    any suggestions???
    thx,
    noha

    Frist your wtk emualtor if you set via directions will pick up non latin encodings via the OS system you are on..if you dont set wtk to pick up non latin encodings it will not pick them up..read the wtk emualtor docs for details..
    Second, non latin encodings are not supported in MIDP 1.0 you have to encode using escape and cahracters and unicode..the exception is if the target device vendor has uspplied a closed api to use for non latin encodings..

  • 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

  • I have a problem with Arabic text

    Hi,
    I hope that you can help?
    I am doing a newsletter which I have an arabic translation of in a word document. When I copy and paste into Illustrator it changes the font (it says times new roman in the word doc, but the illustrator version comes out times new roman but looks completely different ) and the right to left orientation to left to right. How do I fix this? I am using CS4 which I think is the ME version ( it says middle east on the side of the box) I know that the previous designer here managed to do this with the software, so I was hoping that somebody would have the answer?

    I am doing a newsletter which I have an arabic translation of in a word document. When I copy and paste into Illustrator it changes the font (it says times new roman in the word doc, but the illustrator version comes out times new roman but looks completely different ) and the right to left orientation to left to right. How do I fix this?
    Make sure your document language is properly set to Arabic in Word. Just typing Arabic and the document actuall being Arabic are two different things. Mismatches affect Unicode ranges, resulting in the wrong characters being copied to the clipboard. In AI, check the substitution options on the text palette and glyph palette as well as your global glyph protection pref.
    Mylenium

Maybe you are looking for

  • Adobe Reader 6 and windows 8.1

    i recently bought a new laptop and it has windows 8.1.  i have always preferred to use Adobe Reader 6 because i can delete pages, insert pages, etc.  problem is it won't work with 8.1.  how do i get the new adobe reader to do what i used to be able t

  • Notes/Ticker config/explanation of functionality

    I want to know what notes/tickler are and how do you configure them in SAP.  Thanks. Points will be assigned Jason.

  • Workbook is not reflecting changes

    Hi Friends,    I have done some changes in existing structure at1 existing query and same structure are using in different query also, that also reflected and working fine, but these 2 queries are already added in 1 workbook as in 2 worksheets, the p

  • Ipod is set up in other itunes, wanna get it so i can edit on diff comp

    well my bro has a laptop and i dl'd itunes on that and set up my ipod on that and my library is on that... and he is off to college now.. and... i dl'd itunes onto this comp.. when i set it up and plugged in my ipod i couldnt access the songs in the

  • "Show Duplicate Songs" Function doesn't appear

    As the title says, I can't see the "Show Dupliate Songs" function. The whole selection has disappeared. I have looked under each menu and it's supposed to be in View, but isn't. It was a nice function to have I and I hope I will be able to restore it