Ganni Kal wrote:I executed the following code to list all the charsets supported by the JVM in both the RH servers.
There is no difference in the output.
Paul Clapham wrote:Well, I predict that if you print out Java's default file encoding on the two systems which work differently, you're going to print out different values.
Ganni Kal wrote:(observe that the character Ï is not read properly.)
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:
Ganni Kal wrote:(observe that the character Ï is not read properly.)
Are you sure? Are you sure it's simply not printed properly?
Most terminals, including Windows' CMD.EXE, simply cannot handle anything outside plain old ASCII. Try using JOptionPane.showMessage to show the message (if you have an Xorg session running that is).
The same program is reading the characters properly, when I execute it in a different Linux server but with same Locale (LANG=C) settings.
But here the file encoding type was UTF-8 Unicode English text, with very long lines, with CRLF line terminators
Don't get me started about those stupid light bulbs. |