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!

ResourceBundle - French characters

807605Jun 15 2007 — edited Jun 15 2007
I have a Swing application that I want to internationalize. I.E. I want to have an English resource bundle, and a French resource bundle.

I created the two resources files and I've placed them in the classpath, I then load the files like this ( for the French version ):

ResourceBundle.getBundle( "DisplayStrings", Locale.FRENCH, this.getClass().getClassLoader() );

And the resource load properly, but when I request a french string that containts French characters, the String doesn't bring over the french accent characters properly.

Is this an encoding problem? When viewed in a Text editor the French accents work fine, but when I run the application the French characters are coming across as funny garbage characters.

Does anyone have a suggestion?

Message was edited by:
bryano
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2007
Added on Jun 15 2007
9 comments
1,345 views