×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Question Issue while displaying chinese name in j2me application?

    Hi All,

    I have developed an application in j2me for Nokia series 40 devices like Nokia-2700c,Nokia-3110c.
    I want to display some chinese name. And I am facing issue while displaying some name in chinese.
    Some of the Chinese characters are showing as rectangles instead of as their correct Chinese characters and the same character is displaying in other name perfectly.
    Initially I thought that the device does not have that font but that Font is getting displayed in others name perfectly fine.

    So what could be the issue here and how to resolve this issue?

    Please guide me.... Thanks in advance.


    Thanks & Regards,
    Ajit

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Issue while displaying chinese name in j2me application?

    Hi Ajit,

    Can you specify, what keyboard layout (Simplified PRC, Simplified Singapore, Traditional Hong Kong, Traditional Macao, Traditional Taiwan, Microsoft Pinyin, QuanPin, ShuangPin, ZhengMa) you are using with Windows?
    Can you also specify what UI Element you are trying to display the Chinese characters on as a code snippet?
    And it would be helpful if you could specify some concrete examples of when a Chinese character is properly displayed and when it is not (you could provide the Chinese name/word as a sequence of English letters, so that it is possible for me to type it).
    Last edited by skalogir; 2011-10-11 at 14:12.

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Issue while displaying chinese name in j2me application?

    Hi Skalogir,
    I am not entering the chinese name from the keyboard.
    All the names are coming from the server and just I am displaying those in my application.
    I am using the low level UI i.e my application Canvas based application.

    Thanaks & Regards,
    Ajit

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,560

    Re: Issue while displaying chinese name in j2me application?

    If one particular Chinese language character/glyph displays correctly in one string/name, but not another on the same device, then it is most likely that the character (bits) in the string are not the same at all, even if you think they are. Start by verifying that it is the exact same bits that you are trying to display in both cases.

    It could be that the character is wrong already at the server, or that you're doing something to it yourself.

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Issue while displaying chinese name in j2me application?

    If the character is wrong itself in the server then the same character should be displayed as rectangle in the server right?
    But in the server it is fine.And I have checked the name while sending from the server it is the character is diplaying correctly in the server.


    Thanks & Regards,
    Ajit

  6. #6
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Issue while displaying chinese name in j2me application?

    What Petri was saying is that you think that you are talking about one single character, but there is a small (bit-level) difference between the character which is displayed correctly on the device and the one which is not displayed correctly on the device. The server seems to have support for both of the, but the device supports only one of them.

    Hartti

  7. #7
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Issue while displaying chinese name in j2me application?

    Thanks Hartti,

    Is there any solution to resolve this issue?

    Please help me.


    Thanks & Regards,
    AJit

  8. #8
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Issue while displaying chinese name in j2me application?

    Resolve what? Adding more glyphs on the device? Unlikely.
    Or do you mean something else? Please be more specific.

    Hartti

  9. #9
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Issue while displaying chinese name in j2me application?

    Thanks Hartti for your reply...
    I mean what can be done to show properky all chinese characters in the device so that no rectangle will come for a character in the device?


    If the character need to be instaled in the device please guide me how to install fonts in the device and from where I will get the fonts...


    If some thing can be done through the code then please help me by provideing some code snippet.

    Please note that I am using Nokia 3110c and Nokia2700c devices.


    Please help me...


    Thanks & Regards,
    Ajit

  10. #10
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Issue while displaying chinese name in j2me application?

    Quote Originally Posted by ajitkumar26 View Post

    Is there any solution to resolve this issue?

    Please help me.


    Thanks & Regards,
    AJit
    Ajit,

    Try to do some debugigng of the data that you are receiving on the devicve from the server, to make that confirm that every time this is coming the same. As if the some string can be draw once then the same can be drawn for every word and every time. Prabably the server is sending the data some time in the other format and check the encoding too.

    How are you receiving the data in terms of the HTTP or SMS or what?
    Are you doing some parsing to it?

    Please explain the all aspect of the issue to get a quick solution.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  11. #11
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Issue while displaying chinese name in j2me application?

    Hi Raj,

    Thanks for your replay.

    From server data are coming in JSON String.
    In mobile I am doing Json parsing and storing in perst database.


    While display I this issuing is occuring.
    My application is canvas based and I am not using high level API.

    Please guide me to solve this...

    Thanks & Regards,
    Ajit

  12. #12
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,560

    Re: Issue while displaying chinese name in j2me application?

    Can you post the character values of a name that displays OK, and another which doesn't?

    Post the values as retrieved/read on the server side, as well.

    Do the same for a name that doesn't display all right, and then tell us which, exact, characters are the problematic ones.

    Then, you could also, just so see if there's a different, try your code also on a Chinese language variant of a Symbian/S60 phone, to see if the behaviour differs vs. the Series 40 models you've tried.

    Beyond that, it might also require that you post actual code you use to get and display the names (and possibly also what you use to get and send them on the server side).

Similar Threads

  1. Displaying Chinese
    By da01643 in forum Symbian
    Replies: 0
    Last Post: 2003-12-03, 15:00
  2. Displaying Chinese characters
    By TiffanyLim in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-10-10, 17:55
  3. Displaying chinese within J2ME applications
    By damien12345 in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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