Generating unicode for arabic character similar to Character map in c#

Hi,
I need to generate Unicode characters for Arabic character. Similar to character map dialog in windows os.
Example: \uFE97 represent 'ﺗ' and \uFEAE represent 'ﺮ' 
in the character map.
Let me know how to get this similar Unicode from the Arabic string in c#.
Thanks in advance.

Hi SudheendraRao,
I have made a test with the code from Joel, and the 'ﺗ' and 'ﺮ' came out right.
>> if i give string "القائمة" i am expecting "\u0627\uFEDF\uFED8\uFE8E\uFE8B\uFEE4\uFE94" but i am getting Unicode like this "\u0629\u0645\u0626\u0627\u0642\u0644\u0627".
I am not sure the result of string "القائمة" should be, but if I split the string to one char one by one, I could not get the result which you expected.
Could you share us the some key code about your project? It would be better if you could convert “\u0627\uFEDF\uFED8\uFE8E\uFE8B\uFEE4\uFE94” to string to see if the result was equal with “القائمة”
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • Generate unicode for a string

    Hi frnz
    I have a string of a language, how can I generate unicode for the same
    thnks
    alpesh

    again confusion...
    my problem is I dont have \u1234 I have
    character of a hindi language and I want to
    generate unicode like \u1234
    alpeshIf this is not what you want then I'm really confused!
            String aString = "The \u1234quick brown fox jumps over the lazy dog.";
            StringBuilder sb = new StringBuilder();
            Formatter formatter = new Formatter(sb, Locale.UK);    
            for (int i = 0; i < aString.length(); i++)
                char ch = aString.charAt(i);
                sb.append("\\u");
                formatter.format("%04x", (int)ch);
            System.out.println(sb);

  • Display Arabic Character in NetScape Navigator

    Hi
    I am using Oracle Forms & Reports 10g R2. I call a report through a button in that report there are English and Arabic Character. When i see report in Netscape Navigator 9 English character show fine but Arabic Character does not showing properly.
    If I check this report inside report builder Arabic Character show fine.
    I also try by setting 'Character Encoding' = (ARABIC WINDOWS 1256) in NetScape Navigator 9, but no luck.
    Please help me how to solve this issue.
    Thanks
    Yassen.

    Check this link
    Arabic Fonts Issue in Reports
    1. Re: PDF Reports in Unicode / Arabic & English
    2. http://www.orafaq.com/forum/t/162197/149761/
    3. Re: Arabic Report generated to text file giving Junk Character.
    Hope this helps
    Hamid

  • ASCII to Arabic character conversion

    Hi,
    Could any suggest me how I can convert the character set from ASCII to Arabic and vise versa.
    Thanks in advance.
    With regards
    Ramesh.G

    There are no Arabic characters in ASCII, therefore if your file contains Arabic characters it isn't in ASCII.
    If you wish to read a file that contains Arabic characters you need to find out what character encoding the file actually is in. If you can't get the information from whoever wrote the file then do some googling for arabic national character encodings and try a few. Then you use an InputStreamReader with the appropriate, named, encoding to read the file. This will reasult in the text being translated into 16 bit UNICODE characters with the proper arabic UNICODEs.
    They should display properly if you have a font that covers them, though you may have to specify right-to-left display on the component that writes them.
    You could write them as UTF-8 if you want a more international encoding, though not all programs you might wish to use the data in will know UTF-8.

  • Export arabic character into csv file turns into question mark in sql dev

    Hi,
    I am trying to export a table's output that contains some arabic and english mixed data, when I try to export it in csv, all the arabic characters change into question mark (?) but the same export is working fine on .xls or .xlsx.
    Since we have to export a huge data and csv is much faster thar .xls, kindly let me know why it is happening and what is the solution for this.
    Well, we are on Oracle 11gR2 and Sql Dev is 3.1
    Appreciate your time and experience sharing.
    Regards.

    Hi,
    Since you say it works for xls but not csv, and the only applicable preference setting ( Tools|Preferences|Database|Utilities|Export|Encoding ) should apply to all export formats, I would imagine this is a bug. Especially if the encoding specified in Preferences is consistent with the client OS settings. I was not able to find any prior bug logged against the Export utility for this issue.
    I logged a bug for this:
    Bug 13993410 - FORUM: ARABIC CHARACTER ENCODING RESPECTED FOR XLS BUT NOT CSV
    Regards,
    Gary
    SQL Developer Team

  • In Unicode Programs , the "-" CHARACTER CANNOT APPEAR IN NAME

    HI,
       I am checking the routines for the transfer rules(0SRM_GLSPEND_INVOICE) in the ODS Object (0GLS_INV).
    WARNING :In Unicode programs, the "-" character cannot appear in names, as it does here in the name
    " L-LOCAL_ID"
    this is only before unicode conversion .
    thanks & regards
    subba reddy.

    HI,
       I am checking the routines for the transfer rules(0SRM_GLSPEND_INVOICE) in the ODS Object (0GLS_INV).
    WARNING :In Unicode programs, the "-" character cannot appear in names, as it does here in the name
    " L-LOCAL_ID"
    this is only before unicode conversion .
    thanks & regards
    subba reddy.

  • Arabic Character while loading in to Oracle.

    Hi All,
    OWB config is as follows:
    OWB : 9.2
    Oracle 9i database.
    I am able to load Arabic characters from a source table to a target table
    using OWB mappings but when i try to load a flat file the characters get jumbled.
    My environment variables :--
    IN
    Database character set AR8ISO8859P6
    Database National character set AL16UTF16
    Database NLS_language AMERICAN
    Database NLS_territory America
    all settings obtained from v$nls_parameters
    ON Windows server
    in registry
    NLS_LANG = AMERICAN_AMERICA.AR8MSWIN1256
    I have tried changing the NLS_LANG in the registry to AR8ISO8859P6 but still
    the same results.
    Does OWB support Arabic character, by default at time of installation i must have selected American as language parameter?
    If ans to above query is 'Yes' & it i manage to set Language to Arabic what will be impact on other components e.g. OEM, OWM etc.
    Thanks in Advance.
    Regards,
    Vidyanand

    Vidyanand,
    OWB supports Arabic language to add support for objects translations in the repository (done via OWB Repository Assistant).
    OWB also supports data in any language that the database is configured for, as you could see by moving data from table to table with OWB mapping.
    I suspect the problem loading flat file is not with OWB. Can you try loading that same file with SQL*Loader? You can read more on the subject in "Handling Different Character Encoding Schemes" section of SQL*Loader reference (in "Oracle 9i Database Utilities").
    Nikolai

  • � symbol displaying with a Unicode U+00C2 character in front of it.

    Using the same java application code and the same j2sdk_1.4.1_02fcs java package I get a display difference between Redhat 7.3 and Redhat EL4 AS.
    nf = NumberFormat.getCurrencyInstance(new Locale(lan, con));
    String res = nf.format(money);
    This results in a single strange character preceeding the monetary symbol for UK pound symbol.
    Instead of just displaying a � character in front of monetary values I am getting a Unicode U+00C2 character in from of is as shown :
    Good = �1.23
    Bad = ��1.23
    I used the following simple test program to show this :
    >>
    import java.text.NumberFormat;
    import java.util.Locale;
    public class Test555
    public static void main (String[] args)
    NumberFormat nf = NumberFormat.getCurrencyInstance(new Locale("en", "GB"));
    System.out.println(nf.format(1.23));
    <<
    I compiled this and ran the class on both machines...
    on a Redhat 7.3 machine: �1.23
    on a Redhat EL4 AS machine : ��1.23
    The /bin/unicode_start program only works on the console in a VT or xwindows with a TERM type of xterm, but allows the console to properly display the characters.

    The upgrade to Red Hat 8.0 and beyond changed the default character
    encoding from ISO-8859-15 to UTF-8. The UTF-8 translation scheme will translate the Unicode representation of the Pound Sterling to a 16-bit UTF-8 representation by prepending an 0xC2 to the 0xA3 (the Pound). It is this 0xC2 that we see represented as the capital A circumflex or the "T" symbol we noticed earlier.
    Is there a way to remove the prepending 0xC2 that was added by the 16bit UTF-8 representation ?

  • Unicode Character Map

    Hi-ya
    I want to craate a unicode character map much like the one in windows. You choose a font and it shows you all the characters.
    First of all I would have thought this would exist, either with swing or java but I can't find it. Has anyone seen one in the wild?
    Secondly how would the iteration alogrithmn look like?
    I found some samples at unicode.org but they seem way oversized for what I want to do. This is the applet from unicode that I am talking about:
    http://www.unicode.org/reports/tr15/Normalizer.html
    Is there no easy - peasy way to go through all the unicode code points in a font? Like I said either in swt or swing.
    thanks.

    You haven't seen the Font2DTest demo program?
    It doesn't seem to be online but you will find if you look under the demo/jfc/Font2DTest directory of your copy of the java virtual machine.

  • Missing Unicode font in Character Viewer

    The OS 10.6 Character Viewer has a View menu from which one can select the Glyph mode then select a font from the Font menu. How can I get Lion's CV to display my Unicode font and allow me to insert its characters into documents?

    jkent4mac wrote:
    The CSTwo and CSThree fonts are from the ChordSymbol2 family. They were developed by John Clelvenger and are sold through The Virtual Conservatory (www.virtualconservatory.com).
    Thanks for that info!  I found a character map at
    http://www.wix.com/virtualconservatory/home#!menu/vstc1=character-maps
    It's a bit odd they would call these "unicode" fonts, since they replace almost all the required unicode glyphs with specialized music symbols.  Normally they would be called "non-unicode" unless they put all that into the Private Use Area.
    Glad you were able to solve your problem!

  • How to Find the Unicode of a character(s)?

    Dear all,
    How to find a unicode of a character in ABAP as we do in c or java,
    for: ex: i want to print the unicode of 'a' as: 90. some what like that.
    later i want to convert the string of characters in to " byte code stream".
    Please do help on this.

    Hi
    You can use FM HR_KR_STRING_TO_XSTRING.
    Regards
    Yossi.R.

  • How to use the scanner class to ask for a character?

    Hey guys, this is my assignment:
    Ask the user for a single letter and a sentence, and print out the
    number of times that letter shows up in the sentence.
    Please tell me how to scan for a character. I tried this:
    import java.util.Scanner;
    public class Frequencies
        public static final void main(String[] args)
            Scanner scanner = new Scanner(System.in);
            Scanner scan = new Scanner(System.in);
            System.out.println("Enter a sentence");
            String x = scanner.next();
            System.out.println("Enter a letter to look for");
            String y = scan.next();
            char z = y.charAt(0);
            int chara = 0;
            for(int i = 0; i<x.length(); i++){
                    if(z==y.charAt(i)){
                            chara = chara++;
            System.out.println("There are " + chara + " " + z + "s in the sentence");
    }and got the error after Running (not compiling):
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1
            at java.lang.String.charAt(String.java:687)
            at Frequencies.main(Frequencies.java:16)I thought this meant that I was asking for the character in postition 1 of string y, but in my code I wrote position 0
    when I tried inserting words in the character place (just to see what happened, not expecting functionallity, I got
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: [NUMBER OF CHARACTERS]
            at java.lang.String.charAt(String.java:687)
            at Frequencies.main(Frequencies.java:16)Please help.
    The assignment isn't due nor graded, this is just killing me lol.
    Thanks in advance
    Edited by: Sevan on Oct 18, 2008 4:40 PM

    jverd wrote:
    Skydev2u wrote:
    I've used this method for a while now and it gets the job done.
    import java.util.Scanner;
    public class ReadInput {
    public static void main(String[] args) {
    Scanner UserInput = new Scanner(System.in);
    char letter = UserInput.findWithinHorizon(".", 0).charAt(0);
    I know you're trying to help, but this isn't really doing it. It does nothing to address the source of the OP's problem. The way he's doing it now is almost right. He just needs to do a tiny bit of detective work to fix a small bug. Tossing off a totally different approach, with no explanation, is not particularly helpful.Your right jverd I skimmed the OP's problem too quick;y and in tern didn't understand it fully. After reading the post thoroughly I saw that the problem can be solved by taking the sentence the user enters and then converting it into a array of characters. Then searching for the specific letter the user enters is achieved by comparing it to each individual element of the char array. Then incrementing a counter variable each time a match is made. I hope this example code solve your problem.
    * @author skydev
    import java.util.Scanner;
    public class SentenceReader {
        public static void main(String[] args) {
            int counter = 0; //Amount of time the letter appears in the sentence
            char letter;    //Letter the user search for
            char[] sentenceArray; //char array to hold the elements of the string the user inputs
            String sentence; //sentence the user inputs
            Scanner UserInput = new Scanner(System.in);
            System.out.println("Please enter a sentence! ");
            sentence = UserInput.nextLine();
            sentenceArray = sentence.toCharArray(); //splits up the users sentence into a array of char
            System.out.println("Please enter a letter to search for ");
            letter = UserInput.findWithinHorizon(".", 0).charAt(0);
             for(int i = 0; i < sentence.length(); i++){
                    if(letter == sentenceArray){ //search to see if the letter of interest equals to each char (letter) of the array
    counter++; //increments the amount of time the letter appears, set to 0 by default
    System.out.println("The letter appeared " + counter + " times in the sentence"); //Displays the result :) I love programming

  • XSU Problem:Error-- Cannot map Unicode to Oracle character

    Hi, I am using XSU to get the resultset from database(oracle 9.2.0.6.0) as XML.When I query data from some columns and get the XMLString, they give me error -"Cannot map Unicode to Oracle character". The database charset is "US7ASCII" .
    One column is storing Chinese with ''US7ASCII".When xmlString Result contianer
    the column,there is "oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character".But If xmlString Result don't container that column,it run very good.
    The program container these libs: ojdbc14.jar,xmlparserv2.jar,xdb.jar,nls_charset12.jar,xsu12.jar.
    The program code:
    public class OracleXmlParse {
    public static void main(String[] args) {
    try{
    DriverManagerDataSource dataSource = new DriverManagerDataSource("oracle.jdbc.driver.OracleDriver",
                        "jdbc:oracle:thin:@168.1.1.136:1521:imis","ims","ims");
    String selectSQL = "select AREA_CODE,AREA_NAME,REGION_CODE,AREA_NAME_CN from CDM_AREA";
    OracleXMLQuery query = new OracleXMLQuery(conn,selectSQL);
    query.setEncoding("UTF-8");
    String str = query.getXMLString();
    System.out.println(str);
    conn.close();
    }catch(SQLException e){
                   e.printStackTrace();
    Exception:
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character.
         at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:1015)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:267)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:221)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:198)
         at procedure.OracleXmlParse.main(OracleXmlParse.java:34)
    The column that store chinese is AREA_NAME_CN .When "selectSQL " is equal to "select AREA_CODE,AREA_NAME,REGION_CODE from CDM_AREA",the program is ok.
    Please help.
    Message was edited by:
    user542404
    Message was edited by:
    user542404

    So, What is the solution ? Is there something I can do in my code ? My program gives the exception and stops. I am not even interested to fetch the data, which are giving this error.

  • In unicode program, the "-" character cannot appear in names, as it ......

    Hello,
    Very Good Evevning!
    When I am actiavting my program I am receiving the following error message.
    In unicode program, the "-" character cannot appear in names, as it does here in the name "CHAR-".
    What is this error message and what does it mean...?
    Any suggetsions would be appreciated...
    Regards,
    Kittu

    Hello,
    When we activate, it does not throw any error message...The above Unicode error message will not stop us from activating our program.
    It seems that this is due to inconsistency between the servers...If any one has any explonation regarding the Above Unicode error then please let me know.
    Regards,
    Kittu

  • UDF for Special Character Conversion

    Hello All,
    Can any one help me with the UDF for special character conversion code.
    I mean if a special character is given it should pass a blankspace.
    << Moderator message - Everyone's problem is important >>
    Many thanks,
    Rahul.
    Edited by: Rob Burbank on Oct 29, 2010 4:32 PM

    Hi Rahul ,
    the best way to deal with special character is to use proper encoding in your Sender Communication channel it self .So that in your payload you will get proper value .
    IF you are getting some special character which is not covered in encoding UTF-8 thne you can use encoding IS0-8859-1 .You can easily refer in help that how to use encoding in your communication channel .
    Regards,
    Saurabh

Maybe you are looking for