Here is an example of the output I get when with a zip file that uses Unicode properly. The important thing to look for is the presence of the "Language Encoding".
0000 LOCAL HEADER #1 04034B50
0004 Extract Zip Spec 0A '1.0'
0005 Extract OS 00 'MS-DOS'
0006 General Purpose Flag 0800
[Bit 11] 1 'Language Encoding'
0008 Compression Method 0000 'Stored'
000A Last Mod Time 3EB3B54C 'Thu May 19 22:42:24 2011'
000E CRC 00000000
0012 Compressed Length 00000000
0016 Uncompressed Length 00000000
001A Filename Length 0009
001C Extra Length 001C
001E Filename 'tmp/PĀé'
0027 Extra ID #0001 5455 'UT: Extended Timestamp'
0029 Length 0009
002B Flags '03 mod access'
002C Mod Time 4DD58EBF 'Thu May 19 22:42:23 2011'
0030 Access Time 4DD59079 'Thu May 19 22:49:45 2011'
0034 Extra ID #0002 7875 'ux: Unix Extra Type 3'
0036 Length 000B
0038 Version 01
0039 UID Size 04
003A UID 000003E8
003E GID Size 04
003F GID 000003E8
0043 CENTRAL HEADER #1 02014B50
0047 Created Zip Spec 1E '3.0'
0048 Created OS 03 'Unix'
0049 Extract Zip Spec 0A '1.0'
004A Extract OS 00 'MS-DOS'
004B General Purpose Flag 0800
[Bit 11] 1 'Language Encoding'
004D Compression Method 0000 'Stored'
004F Last Mod Time 3EB3B54C 'Thu May 19 22:42:24 2011'
0053 CRC 00000000
0057 Compressed Length 00000000
005B Uncompressed Length 00000000
005F Filename Length 0009
0061 Extra Length 0018
0063 Comment Length 0000
0065 Disk Start 0000
0067 Int File Attributes 0000
[Bit 0] 0 'Binary Data'
0069 Ext File Attributes 81A40000
006D Local Header Offset 00000000
0071 Filename 'tmp/PĀé'
007A Extra ID #0001 5455 'UT: Extended Timestamp'
007C Length 0005
007E Flags '03 mod access'
007F Mod Time 4DD58EBF 'Thu May 19 22:42:23 2011'
0083 Extra ID #0002 7875 'ux: Unix Extra Type 3'
0085 Length 000B
0087 Version 01
0088 UID Size 04
0089 UID 000003E8
008D GID Size 04
008E GID 000003E8
0092 END CENTRAL HEADER 06054B50
0096 Number of this disk 0000
0098 Central Dir Disk no 0000
009A Entries in this disk 0001
009C Total Entries 0001
009E Size of Central Dir 0000004F
00A2 Offset to Central Dir 00000043
00A6 Comment Length 0000
Done
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|