Skip to content
FileMyLove

Garbled Thai in TXT: check encoding before converting to Word

Prepare a verified UTF-8 text copy, distinguish decoding problems from font display, and inspect the converted Word document before use.

By FileMyLove Team2 min read

A TXT file reads correctly in one application but produces strange Thai text in Word. Before changing fonts, inspect how the file was read. Keep an untouched source and create a UTF-8 copy only after verifying the decoded text.

Bytes need the right interpretation

MDN explains that text decoding turns bytes into characters using an encoding. Its Blob.text() method always reads as UTF-8. FileMyLove uses this method for TXT before conversion, rather than automatically selecting a legacy encoding.

We recommend asking the sender or checking the source system's export settings. Do not guess an encoding and overwrite the only original.

Prepare a verified copy

  1. Retain the original TXT separately.
  2. Open it in an editor that lets you choose its input encoding, using information from the sender.
  3. Inspect Thai words, names, numbers and the opening and closing paragraphs.
  4. Once correct, save a new copy as UTF-8.
  5. Reopen that copy before using Convert document.

Select Word output, download the DOCX and inspect it in the destination application. The tool has no TXT encoding selector and does not automatically reconstruct incorrect Thai words.

Separate the symptoms

Observation Our suggested check
Thai becomes other character sequences Encoding used to read the original
Correct before export but wrong afterward Encoding of the actual saved copy
Boxes appear instead of letters Try a supporting font and compare with the source
Replacement marks are already saved Request the original or a fresh export rather than expecting guessed words

This is a triage checklist, not a diagnosis from appearance alone. Renaming a file to .docx is not a decoding or document-conversion step.

Keep layout separate

Correctly decoded TXT remains plain text; it does not contain hidden Word pictures or page layout. See Word to TXT and lost formatting when selecting a delivery copy. Spreadsheet imports involve other decisions; see Thai CSV in Excel for that workflow.

FileMyLove converts locally in the browser without uploading the document. Keep both the original and verified copy until the recipient confirms the content is readable.

Sources

  1. MDN Web Docs
    Blob: text() method
  2. MDN Web Docs
    TextDecoder

FAQ

More articles