This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19654
    
  18

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
 
Similar Threads
getFontList()
Problem with ResourseBundle.Control using struts
Problem with ResourseBundle.Control
XML reading issues
Problem with ResourseBundle.Control using struts