Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User nokia86shankar's Avatar
    Join Date
    Aug 2009
    Posts
    13
    hi I am developing my quiz application ,and i want to add the some special characters,so i want to know the mobiles and their utf support information.I use N-79 and how to identify the UTF-support in my mobile

    Any Ideas will be helpful


    Regards

    Rakesh Shankar.P

  2. #2
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    All Nokia MIDP-2 devices support UTF-8.

    If you're asking about which Unicode characters a device will display, this depends on model, and on the region in which the device was sold. There is no API for determining which characters can be displayed.

    In most cases, all unsupported characters will display identically. You might be able to take advantage of this to determine if particular characters are supported (by drawing two different characters to two mutable images, grabbing the pixels with getRGB(), and comparing the arrays). If the images are the same, then the characters are probably not supported.

    Graham.

  3. #3
    Registered User nokia86shankar's Avatar
    Join Date
    Aug 2009
    Posts
    13
    I am using Lwuit form,and i want superset(apower2),supersetminus(apower-2) characters in my application .So i tried with Utf-8 Characterset.It is not supported.How can i acheive this.


    Regards

    Rakesh Shankar.P

  4. #4
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    I'm not sure what you mean. All characters in Java are Unicode characters.

    You should always specify non-ASCII characters using Unicode escapes, as follows:

    Code:
    String threeToThePowerTwo = "3\u00b2";
    
    String threeToThePowerMinusTwo = "3\u207b\u00b2";
    '\u00b2' is a superscript two, and '\u207b' is a superscript minus.

    If these characters don't display correctly, then they don't exist in the font. If you need characters that don't exist in a font, then you need to draw them from a bitmap image - you can't add characters to the font.

    Graham.

Similar Threads

  1. ###Upgrading Firmware###
    By zahid44 in forum General Development Questions
    Replies: 27
    Last Post: 2008-10-21, 07:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved