LocalReader app icon

Chinese TXT file shows garbled text on iPhone?

Why it happens, and two ways to fix it.

Why it happens

A TXT file does not say which character encoding it uses. Many Chinese novels are saved in GBK, GB2312 or GB18030, while many apps assume UTF-8. The app then decodes the bytes the wrong way and shows random symbols, question marks or the wrong characters. The text in the file is usually fine; it is only being read with the wrong encoding.

Fix 1: open it in LocalReader

When you import a TXT file, LocalReader tries UTF-8, UTF-16, GB18030, GBK and GB2312 in turn and keeps the first one that gives readable text. There is nothing to convert.

  1. Save the file to the Files app (iCloud Drive or On My iPhone).
  2. Open LocalReader (free), tap Import books, and choose the file.
  3. Open the book. If the text looks right, you can read it, or press Listen to hear it offline. Step-by-step guide.

Fix 2: convert the file to UTF-8 on a computer

Reopen the file with the encoding it was really saved in, then save it as UTF-8. Almost every app reads UTF-8.

Older Traditional Chinese files (Big5)

Older Traditional Chinese TXT files are sometimes saved in Big5. LocalReader does not read Big5 files, so convert them to UTF-8 first as in Fix 2, choosing Traditional Chinese (Big5) when you reopen the file.

Still garbled?

If no encoding gives readable text, the file may have been damaged by an earlier wrong conversion. The original characters cannot be recovered from that copy, so look for another copy of the book.

Get LocalReader on the App Store