Garbled Korean names in zip files: cause and fix
A colleague sends you a zip, you open it on a Mac, and out come files named something like ¾È³çÇϼ¼¿ä.txt. Or the other way round: a zip made on a Mac or on Linux, opened in an old Windows archiver, shows names like 안녕하세요.txt. The exact mess differs from one archiver to the next, but the cause is the same.
First, the reassuring part: in almost every case the files themselves are fine. Only the names are broken, and even they are not lost. They are being read the wrong way. This guide explains why it happens, how to bring the names back with RatKits’ Fix names tool, what the alternatives are, and how to make zips that never break in the first place.
Names are stored as bytes, and need the right table to be read
A computer does not store a file name as letters. It stores bytes, numbers, and a character table, the encoding, decides which letter each byte stands for. Korean Windows used CP949, an extension of EUC-KR, for decades. Today almost everything else, macOS, Linux and the web, uses UTF-8.
The same Korean word becomes completely different bytes in the two tables. Bytes written in CP949 and read as UTF-8 (or as a Western European table) turn into odd symbols, and UTF-8 bytes read as CP949 break just as badly. The bytes themselves never changed, so reading them again with the right table gives the original name back. That is why these names can be recovered at all.
Why zip files in particular
Zip is an old format from the late 1980s. At first it did not say which character table file names used, so every archiver simply wrote names in its own system’s table. A flag meaning “this name is UTF-8” (the UTF-8 flag in the header) was added to the specification later, but many programs still never set it.
The classic case is the zip feature built into Windows Explorer (Send to → Compressed (zipped) folder). On Korean Windows it writes names in CP949 and does not set the UTF-8 flag. macOS Archive Utility and Linux see no flag, try to read the names as UTF-8, and the names come out garbled.
The sender usually has no idea anything is wrong. On another Korean Windows machine the names are read with the same table, so they look perfect. Hence the familiar “but it opens fine on my computer” conversation.
It also happens in the other direction. macOS and Linux write names in UTF-8, but sometimes without the UTF-8 flag. A Windows program that falls back to CP949 when the flag is missing then garbles the names on the Windows side instead.
Split Hangul from a Mac is a different problem
Sometimes files made on a Mac show up on Windows with Korean syllables split into their letters, so 한글 appears as ㅎㅏㄴㄱㅡㄹ. That is not an encoding problem but a Unicode normalization difference. macOS often stores Hangul decomposed into letters (NFD), while Windows expects composed syllables (NFC). The characters were read correctly, so changing the encoding does not help. RatKits’ Fix names tool does not change normalization, so for this symptom you need a different tool.
Fixing it with RatKits
RatKits has a tool that fixes only the names of a broken zip and writes a new zip: the Fix names tab of Archive Tools. It runs in your browser with nothing to install and no account.
- Open Fix names.
- Drop the zip files with broken names. Several at once is fine. Anything that is not a zip is marked as unusable and skipped when you run.
- Pick a file to see the detected encoding, the number of entries and of names to recover, and the name as it shows today next to the name after the fix. The right-hand column is what will be written.
- If the preview looks wrong, choose the original file-name encoding yourself in the options. Besides auto-detect there are CP949 (EUC-KR), Shift_JIS, GBK, Big5 and more, and the preview updates right away.
- Press Fix names to get
originalname-fixed.zip. That file unzips with the same names on a Mac and on Windows.
What happens inside is simple. The tool reads only the zip’s file list (the central directory) to guess the encoding, writes the names in the headers again as UTF-8 and sets the UTF-8 flag. The compressed data is copied as it is, without recompressing, so even multi-gigabyte zips finish quickly. A password-protected zip keeps its password and only the names change, and the ZIP64 format (over 4 GB, or more than 65,535 entries) is handled too. All of it happens in your browser, and your files never leave your device.
The same tool also fixes a Mac-made zip that breaks on Windows. When the names are already UTF-8 and only the flag is missing, it tells you so and writes a zip with the flag set. When a zip already has the UTF-8 flag, it tells you there is nothing to recover. If the names still look wrong after that, the archiver opening it is probably too old to honor the flag.
When it cannot be fixed
If someone already extracted the archive with the broken names and zipped it again, the original bytes are gone and cannot be recovered. In that case you need the original zip. Split zips spread over several files and zips with an encrypted file list are not handled yet. When two recovered names collide, files get a (2), (3) suffix and duplicate folders are skipped.
Other ways
If you only need to extract the files once and do not need a fixed zip, there are other routes.
- Extract with RatKits’ Zip & unzip tab. The Zip & unzip tab of the same Archive Tools detects CP949 names with the same logic as Fix names and extracts them with the right names from the start.
- An extractor that lets you pick the encoding. On a Mac, apps such as The Unarchiver let you choose the encoding of the names.
- The Linux command line. Depending on the distribution,
unziphas an option to set the character table, for exampleunzip -O cp949 file.zip. - Ask the sender again. Ask for a new zip with UTF-8 names, and point them to the tips in the next section.
An extractor only fixes the names at the moment you extract on your own computer. If the same zip has to travel on to other people, a zip with fixed names is easier for everyone who receives it.
How to make zips that do not break
- Use an archiver that writes UTF-8 names. Some archivers, Bandizip for example, document a setting that stores zip file names as UTF-8. The name of the setting differs between programs and versions, so check their help.
- Zip with RatKits. Zips made by RatKits’ Zip & unzip tab always store names as UTF-8 with the UTF-8 flag set. They extract with the same names on Windows, macOS and Linux.
- Use English names for files that must not break. When you do not know what the receiver uses, for an official submission or an old system, plain English letters and digits are the safest choice.
- Check before you send. Curious whether a zip will break on the other side? Drop it into RatKits’ Fix names. If it says the UTF-8 flag is already set, it will look right almost everywhere.
Garbled Korean names in a zip do not mean broken files, only two character tables that did not agree. To fix the names now, open Fix names below and drop in your zip.