简体   繁体   中英

read (decode) chm file content using java

I want to read & show content's of chm file. What is the encoding of chm file? I don't want to use any library like jchm. I want easiest way to decode chm files & show there contents.

According to Wikipedia the file-format has been reverse-engineered and docs are freely available.

http://www.nongnu.org/chmspec/latest/index.html

http://metacpan.org/pod/Archive::Chm

I this link -that @Xav provided- is specially concrete on the format:

http://www.russotto.net/chm/chmformat.html

There's some more documentation on the CHM format here: http://www.russotto.net/chm/chmformat.html which might help you to write your own decoding code if you're not willing to use a library to do it.

Alternatively, there are plenty of freely downloadable decoders that will convert CHM back to HTML - have you considered decoding offline and simply including the decoded files in your application?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM