Create compressed Zip for Windows on Mac without “_MACOSX” or garbled characters

Updated : Dec 17, 2021
この記事は約10分で読めます。

If you create a Zip file with standard Mac functions and open it on Windows, garbled characters will occur and an unnecessary folder called “_MACOSX” will be created.

This page explains the causes of these phenomena and how to use the application “WinArchive Lite” to solve these problems.

What happens if you decompress a compressed ZIP file created with standard Mac functions on Windows?

In the screen below, screenshots are taken in the following OS environment.

If the OS is different, the screen design may be different.

OSVersion
MacmacOS 12 Monterey
WindowsWindows 10

From here, I will actually create a compressed ZIP file with Mac standard functions and expand it on Windows.

▶ Bring the Finder to the front on your Mac, select one or more files, then bring up the right-click menu and select the “Compress” action.

This will create a compressed Zip file.

Mac Finder Compress
Click to enlarge

▶ When you unzip the created compressed Zip file on Windows, the “_MACOSX” folder and garbled files will be displayed as shown in the screen below.

MacでzipしたファイルをWindowsで展開した
クリックで拡大表示

▶ In the “_MACOSX” folder, an image file with “. (Period)” added to the beginning of the original file is added.

MacでzipしたファイルをWindowsで展開した
クリックで拡大表示

▶ I tried to open the file in the “_MACOSX” folder, but I can’t see it with the warning “This file seems to be in an unsupported format.”

Mr. Otter
Mr. Otter

So, from here, I will explain the cause of garbled characters and the addition of the garbage folder “_MACOSX” and introduce the solution.

Causes of garbled characters

The causes of garbled characters are as follows.

The character code used when compressing and decompressing files is different between Mac and Windows.

  • Mac
    • All languages: 65001 UTF-8
  • Windows
    • U.S., Britain, etc.: 1252 Latin 1
    • Japan: 0932 Shift-JIS
    • China: 0936 Chinese Simplified GB2312
    • Taiwan: 0950 Chinese Traditional Big5
Code Page Identifiers - Win32 apps
The following table defines the available code page identifiers.
<meta charset="utf-8">Mr. Otter
Mr. Otter

Isn’t it difficult to say a little?

Little devil fox
Little devil fox

Let’s explain it in an easy-to-understand parable.

It’s like using German on a Mac and English on Windows when compressing and decompressing files.

<meta charset="utf-8">Mr. Otter
Mr. Otter

Does that mean that if you match the character code for compression and decompression, the characters will not be garbled?

<meta charset="utf-8">Little devil fox
Little devil fox

That would be the case.

Later, I will introduce an application that supports that operation.

Cause of creating folder “_MACOSX”

The causes of the folder “_MACOSX” are as follows.

“_MACOSX” is the folder that saves the file information that is unique to macOS and the file that stores the information called “resource fork”.

Since it is information that is not used in OS other than macOS, there is no problem deleting it.

<meta charset="utf-8">Mr. Otter
Mr. Otter

The word “resource fork” seems difficult, but I can understand what it says.

<meta charset="utf-8">Little devil fox
Little devil fox

An example of a “resource fork” is file placement information, tags and comments.

This is exactly the information that is not used in other OSs!

<meta charset="utf-8">Little devil fox
Little devil fox

In the app that I will introduce later, you can create a compressed ZIP that does not add a resource fork or “_MACOSX”.

Solution

If you use the free app “WinArchive Lite” when creating a Zip file on Mac, it will be solved.

With this app, you can avoid the problems mentioned above.

Another advantage is that it is a free app and it is simple and easy to use.

How to get WinArchive Lite

It is the correspondence status of the app.

ItemDescription
App Latest version2.5.3 (Feb. 2017 released)
Compatible Mac series・Apple Silicon Mac
・Intel Mac
Compatible macOS versions・macOS 10.9 Mavericks or later

You can get the app at the “App store” from the link below.

How to use WinArchive Lite

The screen description below uses version 2.5.3 (released February 2017).

▶ Double-click “WinArchive Lite” in the “Applications” folder of the Finder to start it.

WinArchiveLiteのアイコン

▶ When “WinArchive Lite” starts, drag and drop the files and folders you want to put in the Zip file to the lower half as shown in the screen below.

WinArchive Lite
Click to enlarge

▶ Then, the execution screen of zip creation will be displayed as shown in the screen below.

Since the character code when creating the ZIP will be changed, click the “Settings…” button at the bottom right.

WinArchive Lite
Click to enlarge

▶ When the setting screen is displayed as shown below, select the appropriate language in ①.

This time, select “Japanese Windows” as an example.

After selecting, ② Click the “Close” button at the bottom right.

WinArchive Lite
Click to enlarge

▶ When you return to the first screen as shown below, click the “Create Zip file” button at the bottom right.

WinArchive Lite
Click to enlarge

▶ After creating the Zip file, click the magnifying glass icon to the right of the file name as shown in the screen below to display the created file in Finder.

WinArchive Lite
Click to enlarge

▶ Now, let’s extract the Zip file created by “WinArchive Lite” on Windows.

As shown in the screen below, it was possible to expand without garbled characters and unnecessary files.

Windows FileExplorer
Click to enlarge

Reference information

About garbled characters when Mac compression → Windows expansion

How to unzip a Japanese ZIP file, and avoid mojibake/garbled characters
I received a ZIP file from a Japanese customer. When I try to unzip it the file and folders names are messed up: $ unzip ~/Downloads/【新入荷ECM】資料.zip ... infla...

About resource forks and folders “_MACOSX”

What is __MACOSX?
This is a question that comes up a lot, particularly from Windows users. So what the devil is the folder called __MACOSX and what can or should I do with it? Th...

Spa cat
Spa cat

This is the end of this article.

コメント

タイトルとURLをコピーしました