Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
raghav007007
Posts: 12
Registered: ‎07-31-2012
My Device: OS 5.0 and 8520
Accepted Solution

Display hindi characters in blackberry os 5.0 application

We are developing an app in which we have to develope the whole app in hindi i.e labelfield containg hindi characters. Kindly help if any one knows how we can do it.

Please use plain text.
Developer
tklanilkumar
Posts: 206
Registered: ‎02-22-2011
My Device: BB TORCH & 9800

Re: Display hindi characters in blackberry os 5.0 application

[ Edited ]

Hi raghav,

For example LabelField lbf = new LabelField("हिन्दी");

tell me by using above labelfield are you getting any compile errors , if not are you able to see the hindi characters in simulator/ device?.

*****************************************************************************
* Give kudos when you like it
* Mark it as a solution if it fixes your issue
Please use plain text.
Contributor
raghav007007
Posts: 12
Registered: ‎07-31-2012
My Device: OS 5.0 and 8520

Re: Display hindi characters in blackberry os 5.0 application

Hi,

 

labelfield shows square black boxes when I run it on simulator/device.

 

I tried using unicode characters also, but then labelfield shows "??????".

 

Regards,

Raghav

Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10

Re: Display hindi characters in blackberry os 5.0 application

you must have the hindi font into your device or add custom font 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10

Re: Display hindi characters in blackberry os 5.0 application

check following link

 

http://docs.blackberry.com/en/developers/deliverables/11958/Load_and_use_a_custom_font_899948_11.jsp

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.
Contributor
raghav007007
Posts: 12
Registered: ‎07-31-2012
My Device: OS 5.0 and 8520

Re: Display hindi characters in blackberry os 5.0 application

Also tried this, but doesn't work. 

 

Regards,

Raghav

Please use plain text.
Contributor
raghav007007
Posts: 12
Registered: ‎07-31-2012
My Device: OS 5.0 and 8520

Re: Display hindi characters in blackberry os 5.0 application

Actually I am getting unicode characters from server, and I want to display those characters in lablefield which 

are actually hindi characters. Anybody with the suggestions how to do ti? Already tried custom font.

 

Regards,

Raghav

Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10

Re: Display hindi characters in blackberry os 5.0 application

Try with this

 

http://bbindia.net/tips-tricks/3654-how-install-hindi-fonts-blackberry.html

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.
Contributor
raghav007007
Posts: 12
Registered: ‎07-31-2012
My Device: OS 5.0 and 8520

Re: Display hindi characters in blackberry os 5.0 application

This isn't working, even mentioned in the comments of the link for os 5.0.

 

Regards,

Raghav 

Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10

Re: Display hindi characters in blackberry os 5.0 application

You need to search the same for os5.0. Your issue is you don't have font in you bb device and you want to use that. So either install the same font or add font in your apps by the following link

 

http://blackberry-digger.blogspot.in/2009/04/how-to-change-fonts-in-blackberry.html

http://www.blackberryforums.com/developer-forum/194078-how-create-custom-font-blackberry-application...

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.