BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 03-04-2009, 05:09 AM   #1 (permalink)
New Member
Join Date: Mar 2009
Model: 8310
Carrier: vodafone
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with displaying specific characters using Graphics.drawText

Please Login to Remove!

Hi everyone,

Have a problem with displaying specific characters on device and simulator. It seems that problem is in BB Fonts. Instead of "Téléphone" i get "T??l??phone"
I'm using such code:

 protected void paint(Graphics g) {
        String str = new String("Téléphone".getBytes(), "UTF-8");
        int x = 0;
        int y = 0;
       g.drawText(str, x, y);

Does anybody really now to overcome this?

Thanks in advance

Copyright © 2004-2016
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.