unicode to Ascii API - blackberry

Hi I am developing an application to display Indian language in application. The text that i use in my application is in Unicode format. I would like to know how can I convert these unicode to ASCII so that I can Display them on my application

Malyalam Unicode
The font file has wrong unicodes for the malyalam characters, using the font editor you need to write the corresponding malyalam unicodes and then it might work properly..

But why do you need to convert into ASCII? You can directily show unicodes and it would get converted to corresponding language..
Please see this link, i guess this would help:
See this at blackberry forums

Related

How I can show english text in arabic

I have English string like "my name is abc". I want show it in Arabic I don't want to put Arabic strings in project .I want to use on NSString or any available functions in Objective c.
If you want to localize your application you must enable it in the application and provide a Localizable.strings which contains all the translations.
you can use it like this:
someTextField.text= NSLocalizedString(#"The text you need to translate", #"comment_optional");
then in your Localizable.strings you should have:
"The text you need to translate" = "the translation you need";
reference for using NSlocalizedString (https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html)
It is not possible. You will have to put language resources inside the project to support multiple language.
I think what you want is translate English to Arabic and not localisation (correctly pointed out by Rajneesh071 as well).
If you are looking for an offline solution, you are out of luck as it is not possible. For online solution, you can make use of Google translate API. It returns JSON response which can be parsed and displayed in your application.
Refer this tutorial for more information on how to use this api in iOS.
Hope that helps!
You can use Localization in your application. You must define another string file which consist arabic language
This link you can take as a reference.

How to read international character sets using CoreText on iOS?

I am trying to load international character glyphs on iOS using CoreText, but I am having some trouble. I am trying to use the following function call to create the font:
CTFontCreateUIFontForLanguage(kCTFontUIFontUser, 15, (__bridge CFStringRef)#"zh-CN");
However, this does not return Chinese characters. Instead I get the regular default en-US font file. What am i doing wrong here? Also, is there a way to get any font, not just the system fonts, or maybe set the font used by these constants? Is there another function call I should be using?
Furthermore, is it possible to determine which built in iOS fonts are capable of rendering international characters and which are not? I would really hate to have to load in my own TTF file, but if the font we want can't support international characters by default, we will have no choice. I am aware that there are certain fonts that support international characters such as "ArialHebrew", but I was hoping that we could use the same font face for all character sets.
Thanks.
EDIT - I also tried the language code with an underscore instead of a dash; no luck.

DataTables, PDF and special characters

I am using DataTables and the TableTools PDF export function. The PDF-export does not take care of certain special characters and translate them into rubbish (or ISO equivalences, i guess). The characters are '●' ●, '○' ○, and '‭٭‭' ٭.
Is there any way to define the character set for the PDF so I can preserve those special characters? (I'm guessing that character set is the problem) Or any other workaround?
No, there isn't a way to configure the character set for the PDF. DataTables, or specifically its TableTools add-on, uses a fairly limited Flash-based PDF exporter.
You can, however, edit the ActionScript used to make the TableTools Flash add-on.
Download TableTools and look in the archive's \media\as3 directory for .as files.
If you don't have Adobe's software for Flash authoring, you might try the open source Adobe Flex.
A late answer (to my self) but others could benefit. I figured out to use mPDF instead. It supports UTF8, languages with special characters and embedded stylesheets.

How to draw Thai/Chinese strings in J2ME?

I'm trying to draw Thai/Chinese strings on a J2ME Canvas using graphics.drawString(string, i, i, aAnchor); but the device hangs when I do so. When I use SOP on string, it displays ?????????. I've tried hard-coding the string too as - String string = "บริการโทรกลับ"; I've read here that the device also needs Chinese/Thai fonts installed on device, so I tested a Thai website on my device and found that it was able to display Thai characters in clickable links (text). I'm sure I'm missing something but just can't figure out what it is! Somebody, please point me in the right direction...
Blackberry related solutions are also welcome.
EDIT I've made a custom font as described here but was still unable to display it. Also, I could use some Thai/Chinese font files (preferably .fnt extension).
Have you tried with custom fonts with Java ME application? Also look on some useful search for using custom fonts.

Blackberry Hindi and Gujarati text display

I want to develop a blackberry application that supports multiple languages, such as English, Hindi and Gujarati. I have tried using utf-8 characters but it displays "??????" for Hindi.
I have try also i18n but there are not possible to write in Hindi in property file. have any idea.
The device needs to have the appropriate fonts installed to display different languages. So you would need to make sure Hindi fonts are available. It sounds like they aren't. Try going to a hindi web page, and see if the characters display correctly there.
For the resource bundle, which I think is what you mean by 'i18n', the compiler forces you to use the default java character encoding. If you're on Windows, this is CP1252. To get characters outside of that encoding, you use the Java unicode escape, which is the four digit hexidecimal encoding of the unicode code point, prefixed with '\u', such as '\u00f3'. The Eclipse editor will do this for you automatically, but if you are editing the file with another editor, this escape encoding will be required.
Make sure you are testing your code on an actual device, and not just the simulator. I learned this the hard way. I spent many hours trying to figure out why my translated text was showing as "?????", and once I tried it on the actual device, the translations showed with no problem (japanese, chinese, russian, arabic, etc).

Resources