Skip to Main Content

Java Programming

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!

Russian encoding problem

807607Oct 5 2006 — edited Oct 19 2006
Hi,

I hope you can help me.

I am writing an java application for a costumer.

To retrieve Information written in russian in a JTextField, I am using the following code:
JTextField jTextField1 = new JTextField();
byte[] value = jTextField1.getText().getBytes("ISO-8859-5");
Later I convert the byte[] into a String.
It works perfectly for me, but unfortunately my customer is running a Windows system in russian, and the application only gets "???" after converting the byte[] into a String.
I am using the String to insert it into a database.

I am not quite sure but it is possible, that the JRE of the costumer has a problem with the cyrillic letters? Is there a special version for russian?

Or is there any other possibility why it is working for me but not for my costumer?

Btw. I am running a german windows system.

Thanks for your help.

th-r
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2006
Added on Oct 5 2006
9 comments
1,287 views