File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need help with ResourceBundle Class

 
jjc wang
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
properties 's code:



java code:


why? Console printing 3. März 1996.
 
Rob Spoor
Sheriff
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic