J2ME LWUIT - Drawing email address error

2019-08-13 01:33发布

问题:

I'm working on my J2ME application trying to fix some bugs. One of this happens when I want to show a email address.

I have a string with a valid email address (mark@mail.com as example) and when I use drawString of LWUIT it draws the email address without the @ (markmail.com)

I try to draw the chain "@@@@" and shows ""

Any idea?. Is it necessary to add some special character to draw @'s?

回答1:

Solved!

The problem was the charset of the resource file.

I added the @ to the charset and now it works

Thanks anyway



标签: java-me lwuit