Jehan Jaleel wrote:I am running this program within a Tomcat server on Windows. It is writing to a plain text file. Since I am writing to a text file, JOptionPane is not really feasible.
Yes it is. You can read from that text file and display in a JOptionPane.
Or you could open that text file with an application and a font that you know can display the character correctly.
You're claiming it's producing the wrong character. Campbell is saying that it may be producing the right character, but that the tool that you're using to view it is interpreting the character incorrectly, or is not capable of displaying the character properly. This could be because the application does not support the encoding or character set, or because the font simply doesn't have a glyph for that character.
Your first step it to determine what character is actually being produced by
Java, and viewing that character in a cmd.exe window or in Notepad is not a reliable way to do that.