×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    3

    J2ME - Chinese Characters

    Hello, please help, we are planning to develop a chinese mobile games using J2ME, we had already tried adding the necessary codes and using UTF-8 format to input chinese characters, problem is when I check the application in the emulator, the chinese characters are showing but there's always 2 boxes in between each characters. Why? and it's not showing up when I tried it in actual phone, can anyone help me please.

  2. #2
    Regular Contributor
    Join Date
    Dec 2003
    Posts
    62
    你的模拟器和手机不支持中文显示。换成支持中文的模拟器和手机即可。
    请阅读以下闻档:
    Series 60 平台的中文字符显示
    http://www.forum.nokia.com/symbianfo..._32_15,00.html

    r606

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    3
    其實我的用的手機是3100中文版的。目前先做在Series 40版。如果是Series 40那麼需要用哪一個平台呢﹖

  4. #4
    Regular Contributor
    Join Date
    Aug 2003
    Location
    China Shanghai
    Posts
    240
    Series 40的开发采用 40 for midp 的SDK或者 7210 for midp的SDK都可以,这两个SDK都带有相关的模拟器和很好的中文支持。
    这两个sdk都可以在Nokia论坛上找到相关的下载连接

    关于Kjava手机开发中的中文问题,您可以参考我以前的帖子,我的一些问题和想法都写在上面了

    共同努力,一起进步!

    zhaofei8009

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    5
    SIMPLE!!!
    Why didn't I think of this before???

    1. First, your text file must be coded in UTF-8 format BUT saved as ANSI.

    2. Next, read your file as stream. (i.e.InputStream is = this.getClass().getResourceAsStream(url)

    3. Initialize a Stringbuffer to hold all your characters(int).

    4. Convert this string buffer to string, then convert it to byte array.

    5. The final string output will be: str = new String(bytearray, "UTF8");

    You can now directly display chinese characters on your 3300 emulator. This way, you can get rid of the boxes that appear between the chinese characters.

    Hope it works! It did for me! Goodluck!

  6. #6
    Registered User
    Join Date
    Feb 2004
    Posts
    3
    ok了﹗謝謝你們﹐ 我們已經按照您所說的﹐做成了application. 那些亂碼沒有再出現了。

Posting Permissions

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