Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Character encoding problem in Symbian OS?

843849May 26 2003 — edited Jun 2 2003
Hi all,

I'm trying to write an app for Symbian UIQ (encoding: cp1252)
This app simpily read a text file and ouput the result in the textField.

The file I tried to read contained Traditional Chinese characters.

when I tried to read a file using the following codes:
BufferedReader in = new BufferedReader( 
                          new InputStreamReader(
                                new FileInputStream(filename, "MS950") 
                              ) 
                         ); 
It gave me a java.io.UnsupportedEncodingException, I've tried to replace MS950 with cp950, big5.....
it still gave me unsupported encoding exception....

If I dont specify the character encoding, the text cannot display properly.

can anyone give me suggestions to handle the problem?
many thanks!

Rick,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2003
Added on May 26 2003
1 comment
156 views