Displaying Devanagari Unicode in J2ME Emulator

Hello,
I know that Java products support Unicode.
Recently I was working in J2ME and was trying to display my Nepali, Devanagari, characters on it but to no avail. I could only see the common square box on the emulator. Does anyone know how to display Devanagari fonts on the J2ME emulator? I would be glad to receive the reply and be very thankful.
Thank you.
Dilip

Mobile-Freak
Welcome to the forum. Please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem. This question was asked nearly 5 years ago.
I'm locking this thread now.
db

Similar Messages

  • How to quit the J2ME emulator when running from a batch?

    I am launching the J2me emulator from a batch file in order to run unit tests (J2meUnit). I am using "emulator.exe -classpath ... -Xdevice:mediaControlSkin -Xdomain@trusted com.mydomain.TestMyMidlet".
    This works fine, and some of the tests even pass (;-)) but after the last one the emulator sits there waiting for me to shut it down, which would get a little tiresome at 4.00am every morning when the rest of the automated unit tests run ;-) How should I terminate it please? I tried to call destroyApp(true) after the last test but got "java.lang.SecurityException: Application not authorized to access the restricted API". What am I missing please? Thanks for any ideas...

    You can extend j2meunit.midletui.TestRunner (which you are probably already doing),
    copy-and-paste the start method from the source package, then change the end to look like this:
                                  System.out.println("Exception while running test: " + e);
                             e.printStackTrace();
    // start change
                   finally
                             notifyDestroyed();
    // end change
              }.start();
         }In other words, when all the tests are done, notify the application manager that you're all done. (destroyApp is what the app manager calls, notifyDestroyed is what you call)
    On the same topic (risking modestly hijacking the thread here) I'd like to ask if anyone knows how to just run some class inside a J2ME VM without having to pop up the UI.
    I know there is a j2meunit.textui.TestRunner, but I haven't figured out any way to get a command-line KVM without an UI at all. AWT throws exceptions when no X server is running (or you unset $DISPLAY). Of course, everything runs fine (except that you can't specify an exit code, which gives you some more hoops to jump through with ant), but I don't think an unit test should need an X server running / should pop up a window for half a second.

  • The JSP WYSIWYG Editor can't display most Unicode characters

    Eclipse supports display of Unicode characters very well since version 3. However, NitroX couldn't display most most of them. Well, besides characters from other non-Western European languages, NitroX can't even display characters that it's supposed to support. Well, that's what I think so. I mean, when we type the & character, we have the whole list of character entity references amongst which we could find ∧ ∇ ∨ → but which are not displayed correctly. And many more are in this case.
    Is this a feature or a bug? By "feature", it means that we can't get them in free version.

    I have exactly the same problem. I support web pages for 25 European countries. I've not seen Nitrox support any unicode characters. Until M7 answers this question or fixes the editor, you can use the Eclipse editor to see and edit the text.

  • How to connect NFC in J2ME emulator

    1 down vote favorite
    1
    how to do the connection for NFC in j2me emulator. If anyone has already work on this project kindly help me to figure out the problem, and please shared me if you have any demo code related to this project. Thanks

    Just to clarify - in the USA, ATT/3G (GSM) models need a micro-SIM; Verizon (CDMA) models don't
    In other countries, the great bulk of providers use GSM (and so will need a micro-SIM). CDMA tends to be concentrated in Asia (there's no hard and fast rule)
    I don't know whether any CDMA providers outside the USA support the iPhone yet.

  • Can a j2me emulator work with a real bluetooth adaptor?

    Can a j2me emulator work with a real bluetooth adaptor?
    Currently I need to work on a project that will need bluetooth and a SE P910i phone.
    But the phone is not available to me at all times.
    So, I am wondering if it is possible to have the emulator connect to a real bluetooth adaptor that is connected to the computer and communicate with other bluetooth phones....
    Any help is very much appreciated :)

    I have not found a solution to it. And I concluded that it cannot be done.
    Bluetooth, on the emulator is emulated too. so if your program needs to test on 2 phones, then you can just open up 2 emulators and they will be able to find each other in their emulated world.
    Try with the bluetooth demo that comes with J2ME. I cannot get to see any pictures when I run them on real phones but it worked flawlessly on emulators......

  • J2ME Emulation of Pointer Events

    I'm trying to develop a J2ME applet that uses Pointer Events, but for some reason this is NOT SUPPORTED by the J2ME Wireless Toolkit 2.5.1, nor can I find any other stand-alone emulators that do either.
    Does anyone know where I can find a J2ME emulator that supported POINTER EVENTS (i.e. mouse clicks) in the Canvas class. Otherwise, it seems the only way I'm going to be able to test any development work I do with the pointer functions is to load the applet onto a device with a touch screen, which seems to defeat the purpose of an emulator.
    Thanks in advance.

    Hi,
    it�s quite simple. The emulator of the WTK 2.5.1supports the touch screen option. You just have to enable it in the properties file.
    Look in the properties file of the device you are using for your tests (For example "C:\WTK2.5.1\wtklib\devices\QwertyDevice\QwertyDevice.properties") and change the property for the touch_screen to "touch_screen=true"
    That�s all. Afterwards the device supports the pointer events and you can do all the tests on the emulated device that you need.
    Regards
    li73772

  • How to call j2me emulator instance from a java program?

    hi,
    how to call j2me emulator instance from a java program?
    i tried public void startApp(){
    try{
    platformRequest("tel:+5550000");
    }catch(Exception e){
    e.printStackTrace();
    from a j2me midlet itself,
    but it gave illegal access exception.
    do i need any hardware phone connected to my pc?
    please help.

    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    import java.util.*;
    public class OpenExplorer{
    public static void main(String args[]){
         new OpenExplorer();
    public OpenExplorer(){
         try{
         String command = "explorer C:";
         // or String command = "cmd /c explorer C:";
         Runtime runtime = Runtime.getRuntime();
         Process process = runtime.exec(command);
         int exitVal = process.waitFor();
         System.out.println("Exit Value: " + exitVal);
         } catch(Exception e){
         e.printStackTrace();
    }

  • Display of Custom Item in Emulator and Nokia Phone are different

    I'm creating a Custom Item which will either display text or image depending on the parameter. I tried with both displaying of text and image on the emulator and it looks reasonably well. However, when i install in my Nokia 6210, the display is not the same. The longer text (more than 30 characters including space) appears to be truncated as the Nokia 6210's screen width seems to be smaller. Then, i increased the minimum height in my code and break the texts to 2 lines to be displayed. Again, it's displayed well in the emulator but on the phone, the 2 lines of texts are overlapping.
    For image, i can position the image by changing the anchor of the image and x & y in g.drawImage. Again, it's displayed correctly on the emulator but it's not well aligned on the phone and the image looks to be smaller with the background rectangle of the Custom Item.
    What i want to achieve is to display the texts or image well aligned horizontally and vertically in various J2ME devices. Can anyone give me some clues like what parameters to change or to take note?
    Below are my code:
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class BCItem extends CustomItem implements ItemCommandListener {
        private MyMidlet midlet;
        private String linkURL;
        private boolean isText;
        private String bannerText;
        private Image image;
        private final static Command CMD_OK = new Command("Visit Ads", Command.ITEM, 1);
        private String [] displayText;
        private String displayTextPart;
        private int displayableWidth;
        public BCItem (String title, MyMidlet midlet, String linkURL, boolean isText, String bannerText, Image image) {
            super(title);
            this.midlet = midlet;
            this.linkURL = linkURL;
            this.isText = isText;
            this.bannerText = bannerText;
            this.image = image;
            displayableWidth = midlet.getWidth();    
            setDefaultCommand(CMD_OK);
            setItemCommandListener(this);
         public int getMinContentWidth(){
        return 240;
      public int getMinContentHeight(){
        return 20;
      public int getPrefContentWidth(int width){
        return displayableWidth;
      public int getPrefContentHeight(int height){
        return getMinContentHeight();
      public void paint(Graphics g, int w, int h){
          if (isText) {
              g.setColor(0x000000);
              g.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_UNDERLINED, Font.SIZE_SMALL));
                g.drawString(bannerText,1, 1,
                       Graphics.LEFT| Graphics.TOP);
          else {
               try {
                g.drawImage(image, getMinContentWidth()/2 + 20, 1, Graphics.RIGHT| Graphics.TOP  );
            catch (Exception e) {
                e.printStackTrace();
      public void commandAction(Command c, Item i) {
          if (c == CMD_OK) {
              try {
                  System.out.println(linkURL + " visited");
                  if (midlet.platformRequest(linkURL)) {
                      System.out.println(linkURL + " visited");
              catch (Exception e) {
                  e.printStackTrace();
    }

    This forum isn't the complaints department, it's a place where users help each other. Obviously a fellow user cannot help you to resolve this.
    What you need to do is call nokia care in India and ask for the official complaints address. You will then need to write a polite letter (not an email) detailing your issues. They will respond to you and try to resolve the situation.

  • Urxvt can't display certain Unicode arrow characters

    For some of the arrow characters in Unicode, specifically the codepoints 2900 to 2AFF, urxvt shows slim boxes, but for other characters it works.
    I am using a font that supports the glyphs, gnu unifont from the bdf-unifont package.
    Here is my .Xresources and Urxvt compile options
    *background: #002b36
    *color0: #073642
    *color1: #dc322f
    *color10: #586e75
    *color11: #657b83
    *color12: #839496
    *color13: #6c71c4
    *color14: #93a1a1
    *color15: #fdf6e3
    *color2: #859900
    *color3: #b58900
    *color4: #268bd2
    *color5: #d33682
    *color6: #2aa198
    *color7: #eee8d5
    *color8: #002b36
    *color9: #cb4b16
    *cursorColor: #93a1a1
    *fadeColor: #000000
    *fading: 20
    *foreground: #93a1a1
    *pointerColorBackground: #586e75
    *pointerColorForeground: #93a1a1
    URxvt*boldFont: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*boldItalicFont: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*borderLess: false
    URxvt*buffered: true
    URxvt*cursorBlink: true
    URxvt*font: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*hold: false
    URxvt*intensityStyles: false
    URxvt*iso14755: false
    URxvt*iso14755_52: false
    URxvt*italicFont: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*letterSpace: 1
    URxvt*mapAlert: true
    URxvt*mouseWheelScrollPage: true
    URxvt*perl-ext:
    URxvt*perl-ext-common: default,matcher,selection-to-clipboard,theme-switch
    URxvt*print-pipe: cat > $HOME/$(echo urxvt.dump.$(date +'%Y%M%d%H%m%S'))
    URxvt*saveLines: 0
    URxvt*scrollBar: false
    URxvt*scrollBar_floating: false
    URxvt*scrollBar_right: false
    URxvt*scrollTtyOutput: true
    URxvt*scrollWithBuffer: true
    URxvt*scrollstyle: plain
    URxvt*secondaryScreen: true
    URxvt*secondaryScroll: true
    URxvt*urgentOnBell: false
    URxvt*url-launcher: /usr/bin/firefox
    URxvt*utmpInhibit: false
    URxvt*visualBell: false
    Xft.antialias: 1
    Xft.autohint: 0
    Xft.dpi: 107
    Xft.hinting: 1
    Xft.hintstyle: hintfull
    Xft.lcdfilter: lcddefault
    Xft.rgba: rgb
    rxvt-unicode (urxvt) v9.21 - released: 2014-12-31
    options:perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jpext+kr+zh+zhext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
    Anyone have any idea what's going on?

    I can confirm the odd character display. Xterm will display the problem Unifont characters, but there are column alignment problems at all but a few point sizes.  Many of the glyphs require two columns, but I don't know what difficulties that presents for font designers or terminal emulator programmers.
    Very few monospace fonts include these seldom used arrow symbols. If you truly need the arrows, you might try Everson Mono or Code2000 from the AUR. They include some of the glyphs in the problem range.

  • Displaying UTF8 unicode on JSP

    hi,
    i have followed the tutorial on http://java.sun.com/docs/books/tutorial/i18n/text/stream.html for how to display unicode on java application.
    now, i want to output the unicode to my jsp pages, but it displays distorted or wrong characters. can some1 pls advice me what went wrong ?
    it supposed to display (sasa), but it displays (?u?u) .
    pls help.
    thanks

    Hi,
    I am using websphere with jsp 1.1 which does not include the method mentionned above.
    I want to display utf8 characters in my browser.
    Before, I was using JSP 1.0 and the mata tags with charset="utf-8" and it was working very well.
    What's the differenc ewith JSP 1.1 ?

  • Can't display non-unicode font

    When I try to use Symbol font and display it in JLabel, it show a square.
    i have read the article written by John O'Conner
    http://www.joconner.com/javai18n/articles/TextDisplay.htm.
    Thanks for providing those valuable information. it does help to understand some international issue.
    however, I am not sure if it apply to Symbol font such as Wingdings, webdings.
        Font fontPalatino = new Font( "Palatino LinoType", Font.PLAIN, 25); //unicode font
        Font fontMapInfo = new Font( "MapInfo Transportation", Font.PLAIN, 25); // non-unicode font
        Font fontWingdings  = new Font( "Wingdings", Font.PLAIN, 25);
              // use integer number and convert into equivalent character
              // e.g. if i is 65 then c is A.
              // notes: 65 is a decimal value converted from hex 0041 value
              int i = 65;
              char c = (char)i;
              System.out.println( new Character(c).toString() );
              JLabel jlbl = new JLabel();
              jlbl.setFont(fontSymbol);
              jlbl.setText( new Character(c).toString() );1) I can't display any Wingdings font , any expert can help on this?
    2) what is the difference between 0021(character code for Arial font) and 0x21(character code for Wingdings font) shown in character map?

    When I try to use Symbol font and display it in
    JLabel, it show a square.
    i have read the article written by John O'Conner
    http://www.joconner.com/javai18n/articles/TextDisplay.htm.
    Much of that article is now incorrect or unnecessary for JDK 1.5. Because 1.5 knows how to find a font for the character you're trying to display, you should be able to set your label font to any logical font, and the JRE should find a substitute font if necessary that can display the character.
    I'll give your code a try and will post results...is the code you've posted the code I should actually experiment with? It seems like you should want to display something different than 0x0065.
    Your other questions:
    0x0021 is the exclamation mark regardless of font. I see what you mean, however, since the wingdings font in charmap also says 0x0021. However, that mapping is obviously not a Unicode code point mapping.
    I looked in the Misc. Symbols and Dingbats section of Uncode. A few characters might be a reasonable substitution for the pencil character you want:
    0x270E (LOWER RIGHT PENCIL)
    0x270F (PENCIL)
    0x2710 (UPPER RIGHT PENCIL)
    I didn't see any mirror images of these, ie LOWER LEFT PENCIL and UPPER LEFT PENCIL, although I admit that I didn't look closely.
    Maybe one of these will work for you instead of the Wingdings 0x21 character you mentioned.
    Regards,
    John O'Conner

  • How to display a unicode character in a list ?

    Hi,
    sorry if the question seem to be really easy but I doenbt found of to diaply a special character in a list.
    I thank that it was easy :
    1) display tha windows character map
    2) copy paste the charatcter in the ABAP Program to obtain something like this :
    write '≤'.
    But the displayed character is '#' . So, could you tell me how to display a gived unicode character ?
    Regards,
    morgan

    Hello Morgan,
    you need SAP system with unicode. You can check it from every dynpro/mode:
    System->Status: SAP System dada  Unicode system: yes
    I have checked your sign '≤' on my not UC system: is displayed: '='.
    Bye,
    Peter

  • [SOLVED] Can't display extended unicode

    Hello,
    My arch install cannot render extended unicode characters. Example:
    http://i.imgur.com/3VNpkkI.png
    I first though it was a font issue, but this website tells me that I have many, many fonts that should display that character:
    http://www.fileformat.info/info/unicode … %2B0CA0%29
    It renders nowhere on my system. Not on firefox, not on terminal, not on gedit, nothing. I am sure it is not a font issue, as I have tried Arial, Times New Roman, DejaVu sans and other that are suppsed to have extended Unicode support.
    Here is the output of locale:
    [03:46:05 ~]$ locale
    LANG=en_CA.utf8
    LC_CTYPE="en_CA.utf8"
    LC_NUMERIC=en_CA.utf8
    LC_TIME=en_CA.utf8
    LC_COLLATE="en_CA.utf8"
    LC_MONETARY=en_CA.utf8
    LC_MESSAGES="en_CA.utf8"
    LC_PAPER=en_CA.utf8
    LC_NAME="en_CA.utf8"
    LC_ADDRESS="en_CA.utf8"
    LC_TELEPHONE="en_CA.utf8"
    LC_MEASUREMENT=en_CA.utf8
    LC_IDENTIFICATION="en_CA.utf8"
    LC_ALL=
    Thoughts?
    Last edited by morphheus (2014-08-28 09:59:52)

    Try https://wiki.archlinux.org/index.php/Fonts#Indic
    The Great Arch Linux wiki wrote:ttf-indic-otf - Indic OpenType Fonts collection (containing ttf-freebanglafont)
        (This one contains a "look of disapproval" that might be more to your liking than the bdf-unifont one mentioned elsewhere in this document)

  • EPM11.1.1.1 Data Prep Editor Can't Display non-Unicode text

    LANG=zh_CN.GBK
    ESSLANG=SimplifiedChinese_China.MS936@Binary
    I open data file, Chinese can not be displayed , but I can mannuly input Chinese.
    Display unicode text is OK, cannot load, so I change cube to unicode mode, Load data is OK. but DIM(informatica) cannot see the unicode application.

    Hi Bruce,
    for GeoRaster themes you can define a specific pyramid level to render, or you can leave the pyramid level null on the theme definition, and in this case MapViewer calculates the best level to render. The second option is recommended as it avoids loading unnecessary data given the current display parameters. If you are seeing your image get blocked, most likely at this zoom level and up you have reached the highest pyramid level of the GeoRaster. Even in MapBuilder if you keep zoom in, you get a blocked image after reaching the highest resolution level.
    Joao

  • Why does Firefox have trouble displaying certain Unicode Plane 1 characters (specifically, Phoenician)?

    Hi. I'm trying to get Firefox to display characters from ancient scripts. I have installed all the necessary fonts, and changed the encoding to Unicode. When I try to view Phoenician and Imperial Aramaic characters (other scripts too), I just get boxes with numbers (10900 and so forth). I have a laptop that is able to display these characters but I need to be able to see them on my current system.

    Try installing the font "aegean".
    You can find the font here
    http://www.fonts2u.com/download/aegean.font
    By the way, have you read
    http://en.wikipedia.org/wiki/Help:Special_characters
    ?

Maybe you are looking for