Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

identifying the encoding option...

Status
Not open for further replies.

kanghao

IS-IT--Management
Jul 4, 2004
68
KR
There is a class file.
How can I know the encoding option of the file in another java code? I mean -encoding "8859_1" or -encoding "KSC5601" etc.
 
Interesting question.

As far as I know, it's only the source files for which the encoding is relevant. Once they are compiled (possibly by using the -encoding option to let the compiler know which encoding the source is in) do the class files actually have the same encoding? I'm thinking that since they are essentially binary files, the encoding is irrelevant as the class contents are JVM-consumable, not human-consumable.


Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top