黑莓印地文和古吉拉特文本显示 [英] Blackberry Hindi and Gujarati text display

查看:147
本文介绍了黑莓印地文和古吉拉特文本显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发支持多国语言,如英语,印地文和古吉拉特黑莓应用程序。我一直在使用UTF-8字符尝试,但它显示??????为印地文。
我曾经也尝试国际化,但也有不可能在印地文写的属性文件。有什么想法。

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.

有关资源包,我想这是你说'国际化'的意思,编译器强制您使用默认的Java字符编码。如果您使用的是Windows,这是CP1252。要获得编码之外的字符,你可以使用 Java的单code逃避,这是UNI code code点,$ p $的四位十六进制编码,pfixed'\\ U',如'\\ u00f3。 Eclipse编辑器会自动为你做到这一点,但如果你是与其他编辑器编辑文件,这种逃避的编码是必需的。

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.

这篇关于黑莓印地文和古吉拉特文本显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆