Hello,
I wondered if wnyone had a clue on this:
When using javap on one of my class files I get some funny characters
regarding method names.
Unfortunately, I do not end up with the expected character that we
recorded with another tool. We believe this has to do with the character
encoding being different on both tools.
My question is simply this:
Is there any way we can change the character set encoding that javap
outputs?
And also, I believe javap outputs Unicode characters.. am I right on this?
Thank you,
Sebastien Marion
Thomas Weidenfeller - 07 Mar 2006 10:51 GMT
> Is there any way we can change the character set encoding that javap
> outputs?
javap -J-Dfile.encoding=<the encoding you want>
Or run a converter like native2ascii (possibly two times) on the result.
> And also, I believe javap outputs Unicode characters..
It uses the platform's default encoding. Only if that one is some
Unicode encoding you get unicode characters.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
S.Marion - 07 Mar 2006 13:41 GMT
Thank's a lot Thomas :)
Sebastien Marion