× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Mon, Mar 2, 2015 at 4:48 PM, Tim Bronski <tim.bronski@xxxxxxxxx> wrote:
While it's true that the contents of the archive might unzip correctly, the
actual files names that are restored on the destination system might very
well be material to the receiver.

Right, which is why I then showed that extracting using the same jar
program worked fine.

Since a zip archive has no record of the ccsid
used on the creating system it is sometimes more than just helpful if the
archive creator formats the name so it appears on the receiving system the
same way as it did to the sender.

And if a ZIP archive indeed has no record of the CCSID of the creating
system, then how does does the receiving system know which CCSID to
use when extracting the names? Hint: It doesn't. And what's more,
it doesn't really matter!

I haven't read the official JAR specification, but I imagine that it
has to specify an encoding. And it would be as universal as possible
(UTF-8? That's what almost any sane person would use today, but I am
pretty sure Java was originally developed with UCS-2, so maybe it's
that). So it's the archiver's responsibility to encode properly, and
the extractor's responsibility to decode properly. With "properly"
being defined by the JAR specification.

Apparently, some software doesn't adhere to the spec, possibly
including some portions of the jar program itself; but as far as I can
tell, the archiving and extraction seem fine. But I don't have other
machines to test on.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.