×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    13

    Question Utf support in Nokia Mobiles

    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
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Utf support in Nokia Mobiles

    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
    Join Date
    Aug 2009
    Posts
    13

    Re: Utf support in Nokia Mobiles

    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
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Utf support in Nokia Mobiles

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