File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes I need help with ResourceBundle Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I need help with ResourceBundle Class" Watch "I need help with ResourceBundle Class" New topic
Author

I need help with ResourceBundle Class

jjc wang
Greenhorn

Joined: Oct 07, 2009
Posts: 3
properties 's code:



java code:


why? Console printing 3. März 1996.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19759
    
  20

1) Blame the console. It's notorious for being bad at displaying characters that aren't in the default ASCII set; see http://www.asciitable.com. You can use JOptionPane.showMessageDialog to display your strings; it has less limitations on what it can display.
2) Blame ResourceBundle. It's using the system default encoding by default. Check this thread for how to create a ResourceBundle.Control sub class that allows you to specify the encoding.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I need help with ResourceBundle Class