Mailinglist Archive: opensuse (1897 mails)

< Previous Next >
Re: [opensuse] uncompessing zip files and accented characters
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Tue, 13 Jul 2010 12:29:21 +0200
  • Message-id: <i1hf61$g4n$1@xxxxxxxxxxxxxxxx>
Philipp Thomas wrote:

* Dave Howorth (dhoworth@xxxxxxxxxxxxxxxxx) [20100713 11:40]:

Is that wrong? What has unzip transformed the filenames into if it
hasn't preserved them?

Ok, once again:
Zip will write the names to the archive in whatever encoding the
originating machine uses. However it will *not* record the encoding
used. So in this case unzip will read the names encoded in say latin-2
(a single byte encoding) and will write them as utf8 (a multi byte
encoding) which of cause will result in the gibberish the OP posted.

Isn't it rather than unzip simply dumps whatever filenames that were
zipped, and that the terminal attempts to display those names as if
they are utf8?
Or does zip really convert from (for instance) latin-2 to utf8 ??



--
Per Jessen, Zürich (23.9°C)

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >