Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

javap character set

Thread view: 
S.Marion - 07 Mar 2006 10:24 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.