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 Corrupt Unicode Characters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Corrupt Unicode Characters" Watch "Corrupt Unicode Characters" New topic
Author

Corrupt Unicode Characters

John Thomass
Greenhorn

Joined: Feb 27, 2008
Posts: 2
I'm trying to internationalize my program, but I'm having some problems. The characters aren't being displayed correctly. This happens with all languages with unicode characters, not just Czech. I've tried typing the unicode characters directly into the .properties file:

I've also tried using the native2ascii program to produce this:

But whenever I run the program, I just get corrupt characters:

This is the code I'm using to create get and set the language strings:

The dodgy text appears in both the console and on the JTextPane, and all of the menus and buttons in the application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Corrupt Unicode Characters
 
Similar Threads
[newbie] regex anomaly
Service with handlers on JBoss. BIG Problem
no war
Objects available for GC
Corrupt Unicode Characters