I added UTF-8 encoding support to the Twim application. In case you didn’t know, Twim is Twitter client software that runs on all phones that support J2ME. With the latest version you should be able to see correct characters in tweets if your phone has required fonts available. Here’s for example my test tweet containing simplified Chinese characters:
This was rather easy to implement since we can define encoding when constructing stream reader from input stream:
-
InputStreamReader reader;
-
try {
-
-
// Try to initialize reader with UTF-8 encoding
-
-
-
// Device doesn’t support UTF-8, use default
-
-
}
-
// …read data and do stuff…
-
}
This version also has a new feature for refresing the feed without the need for restart. You can download the application from Phoload page or from here.

hello:
Rssreader…..
private ResourceProviderME() {
//#ifdef DTEST
//@ long beginMe = System.currentTimeMillis();
//@ System.gc();
//@ long beginMem = Runtime.getRuntime().freeMemory();
//#endif
final Hashtable tmpMsgs = new Hashtable();
InputStream is = null;
try {
is = getClass().getResourceAsStream(
“/”+Common.DATA_FOLDER+”/” + Common.LANGUAGE_FILE);
if (is == null) {
throw new IOException(“Unable to read file ” +
“/”+Common.DATA_FOLDER+”/” + Common.LANGUAGE_FILE);
}
where is location “/”+Common.DATA_FOLDER+”/” + Common.LANGUAGE_FILE);
I cann’t find it.thank you very much