Read correctly, then write correctly
Garbled text nearly always means mismatched encodings: a GBK file opened as UTF-8 turns into blocks. The two lists divide the work: source encoding offers UTF-8, GBK with GB18030, Big5, UTF-16LE, UTF-16BE, Shift_JIS and EUC-KR to tell the tool how to interpret bytes, while target encoding offers UTF-8, UTF-8 with BOM, UTF-16LE and UTF-16BE to decide output. Controls convert and download, load a sample, copy text and clear. A wrong source ruins everything after it, and a wrong target leaves receivers unable to open the file.
Steps
- Load or paste the text and check the sample first.
- Set the source encoding to the file's real one, trying candidates when unsure.
- Judge by preview: blocks everywhere mean a wrong source.
- Set the target to UTF-8 for the widest portability.
- Add the BOM only when Excel must open it directly, omitting it for programs.
- Convert and download, or copy text when only content is needed.
How the encodings differ
UTF-8 is variable length, one byte for Latin letters and three for Chinese, and internationally standard. GBK and GB18030 are legacy Chinese encodings common on Windows, with GB18030 covering more characters. Big5 serves traditional Chinese regions and appears in older files there. UTF-16LE and BE differ in byte order, with LE typical of Windows software. Shift_JIS and EUC-KR cover older Japanese and Korean files. A BOM is a leading marker announcing UTF-8 that nonetheless pollutes the first column or line for programs. Practical detection looks for replacement characters, since walls of question marks or blocks mean a wrong choice.
Common mistakes
Wrong source and a fully garbled page. Choosing UTF-16 for legacy systems that cannot read it. Adding a BOM to program input and breaking the first column. Reading Big5 as GBK and mangling traditional characters. Skipping start and end checks after conversion. And expecting formatting to survive, which encoding work never provides.
Where encoding is the wrong layer
Format conversion belongs to format tools. Damaged bytes need a hex viewer. Layout preservation needs document converters. And encoding work never solves structural problems.