×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    9

    Not collectly showing Japanese character on Asha SDK 1.0

    Hi,

    I'm trying show Japanese character in my application on Asha SDK 1.0, but it's not showed correctly.
    For example, below show http://ja.m.wikipedia.org/wiki/%E3%8...82%B9%E3%83%88 on Nokia Xpress Browser in SDK.

    http://twitter.com/ayamadori/status/...453056/photo/1

    My appliction show ploblem same as above.
    Of cource, Asha SDK does not support Japanese officially.
    But obviously, SDK font includes Japanese character(= HIRAGANA and KATAKANA).
    So, it should show collectly.

    What could I do?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    if you see empty rectangles, they do mean that the font specified does not include the character you are trying to use. So either the font does not have teh character, or you are using wrong encoding for the string.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    Quote Originally Posted by ayamadori View Post
    Hi,

    I'm trying show Japanese character in my application on Asha SDK 1.0, but it's not showed correctly.
    For example, below show http://ja.m.wikipedia.org/wiki/%E3%8...82%B9%E3%83%88 on Nokia Xpress Browser in SDK.

    http://twitter.com/ayamadori/status/...453056/photo/1

    My appliction show ploblem same as above.
    Of cource, Asha SDK does not support Japanese officially.
    But obviously, SDK font includes Japanese character(= HIRAGANA and KATAKANA).
    So, it should show collectly.

    What could I do?
    Test it in real device - which has these Japanese fonts supported on it - and your unicode values are wrong if even then you see these rectangles.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    9

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    Quote Originally Posted by symbianyucca View Post
    if you see empty rectangles, they do mean that the font specified does not include the character you are trying to use. So either the font does not have teh character, or you are using wrong encoding for the string.
    Thank you for reply.

    I think so too, at first.
    But I try this code in sample MIDP Canvas app, show below link on SDK emulator.
    https://twitter.com/ayamadori/status.../photo/1/large
    Is "\u3044"(="い") included in SDK font?
    Code:
    protected void paint(Graphics g) {
    	int fontheight = g.getFont().getHeight();
    	g.setColor(BACKGROUND_COLOR);
    	g.fillRect(0, 0, getWidth(), getHeight());
    	g.setColor(ACTIVE_COLOR);
    	g.drawString("\\u3044", 0, 0, Graphics.TOP|Graphics.LEFT);
    	g.setColor(TEXT_COLOR);
    	g.drawString("\u3044", 0, fontheight, Graphics.TOP|Graphics.LEFT); // expected showing "い"
    	g.setColor(ACTIVE_COLOR);
    	g.drawString("\\u3042\\u3044\\u3046\\u3048\\u3050", 0, fontheight*2, Graphics.TOP|Graphics.LEFT);
    	g.setColor(TEXT_COLOR);
    	g.drawString("\u3042\u3044\u3046\u3048\u3050", 0, fontheight*3, Graphics.TOP|Graphics.LEFT); // expected showing "あいうえお"
    	g.setColor(ACTIVE_COLOR);
    	g.drawString("\\u9752\\u3044\\u9CE5", 0, fontheight*4, Graphics.TOP|Graphics.LEFT);
    	g.setColor(TEXT_COLOR);
        	g.drawString("\u9752\u3044\u9CE5", 0, fontheight*5, Graphics.TOP|Graphics.LEFT); // expected showing "青い鳥"
    }

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    9

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    Quote Originally Posted by im2amit View Post
    Test it in real device - which has these Japanese fonts supported on it - and your unicode values are wrong if even then you see these rectangles.
    Thank you for reply.

    I don't have the real device (and I want to get 501).
    But this problem seems to occur on the real device.
    http://weekly.ascii.jp/elem/000/000/...cs1e1_800x.jpg
    hmm...

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    It looks that Is "\u3044"(="い") is not included in SDK font - it may not be available on real device also... hence you may need to define your own bitmap font and use it.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  7. #7
    Registered User
    Join Date
    May 2008
    Posts
    9

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    Quote Originally Posted by im2amit View Post
    It looks that Is "\u3044"(="い") is not included in SDK font - it may not be available on real device also... hence you may need to define your own bitmap font and use it.
    The result of sample MIDP Canvas app indicates
    EXPECTED RESULT = "い" ---> ACTUAL RESULT="□" (empty rectangle)
    EXPECTED RESULT = "あいうえお" ---> ACTUAL RESULT="□□□□□" (empty rectangle)
    EXPECTED RESULT = "青い鳥" ---> ACTUAL RESULT="青い鳥" (correctly showing "青" and "い" and "鳥")
    So I think SDK font includes "い"(=\u3044) and showing empty rectangle is the bug of SDK (and the real device).
    I will consider using custom bitmap font as you say and report this bug.

    Thank you.

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Not collectly showing Japanese character on Asha SDK 1.0

    It looks as if some extended character set is not supported in the Japanese font available to the SDK, bitmap font can solve your problem till time the character sets are not updated. As I don't understand Japanese I am not able identity if these are some combination of characters or half characters - which are causing this issue.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Images not showing on Asha devices (and maybe others) for s40 web app
    By peoplepilot in forum Nokia Asha Web Apps
    Replies: 3
    Last Post: 2012-12-17, 07:31
  2. displaying japanese character or hindi character on phone
    By akhil0706 in forum Mobile Java General
    Replies: 4
    Last Post: 2010-08-04, 17:47
  3. How to display/input japanese and korean character in Nokia 6120c?
    By jhclai in forum General Development Questions
    Replies: 1
    Last Post: 2009-01-07, 10:28
  4. E 61 Japanese using Psiloc Localization Japanese for Series60
    By Arnold Consengco in forum General Development Questions
    Replies: 1
    Last Post: 2006-11-12, 17:55
  5. How to construct a link which contain Japanese character on it?
    By binhtt in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2002-11-04, 21:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×