Sun Microsystems J2ME Tool Storage User Manual


 
Appendix C Internationalization 117
Note All the J2SE encoders are available in the emulated environment. See the
J2ME Wireless Toolkit Basic Customization Guide for information on how to limit the
list of available encoders for a specific device.
C.3.1 Java Compiler Encoding Setting
The javac.encoding property determines the encoding used by the javac
compiler to compile your source files. The property’s value is set to the default
encoding for the J2SE environment running on the same window system.
You can override the default value by adding the javac.encoding property to
the {toolkit}\wtklib\{platform}\ktools.properties file, where {platform} is the
name of the underlying platform, like Windows or Linux. For example, if you are
running in an English system but find you need to compile a Japanese resource
bundle, you can specify a Japanese character set, such as:
javac.encoding=EUCJIS
C.4 Font Support in the Default Emulator
The default fonts that are used in the emulated environment are set according to
the underlying window system locale. By default, the MIDP environment fonts are
mapped to the default J2SE environment Java fonts. These fonts usually support all
the characters that are required by the current window’s locale.
You can override these fonts to support other characters that are not supported by
the default fonts. See the J2ME Wireless Toolkit Basic Customization Guide for
information on how to configure them.