Caxton
Features Benchmarks Pricing Docs How it works Changelog Support About Download Free
Guide
Getting Started Opening Large Files Find & Replace Filtering CSV Workbench Editing at Scale Power Editing Navigation & Bookmarks Log Mode Compare View & Themes Sessions & Recovery
Reference
Keyboard Shortcuts Menu Reference Settings & Storage Encodings How Caxton Works Benchmarks

Encodings

Caxton reads 18 text encodings. Sixteen are detected when a file opens; two are available only from File ▸ Reopen with Encoding. The status bar shows the encoding and line-ending style of every document.

The 18 encodings

Listed in the order of the Reopen with Encoding menu.

EncodingDetected on openNotes
UTF-8YesValidated as UTF-8. An all-ASCII file is read as UTF-8.
UTF-8 with BOMYesBy its byte order mark.
UTF-16 LEYesBy its byte order mark, or without one by the pattern of zero bytes.
UTF-16 BEYesBy its byte order mark, or without one by the pattern of zero bytes.
Shift-JISYesJapanese.
EUC-JPYesJapanese.
GB18030YesSimplified Chinese.
Big5YesTraditional Chinese.
EUC-KRYesKorean.
Windows-1252YesWestern European. Detected even when only a few accented characters appear.
ISO-8859-1YesWestern European.
Windows-1251YesCyrillic.
KOI8-RYesCyrillic.
ISO-8859-5YesCyrillic.
Windows-1250YesCentral European.
ISO-8859-2YesCentral European.
Windows-1254Reopen onlyTurkish. Choose it in File ▸ Reopen with Encoding.
Windows-1257Reopen onlyBaltic. Choose it in File ▸ Reopen with Encoding.

How detection decides

When a file opens as UTF-8 at low confidence and some bytes look like a legacy encoding, the banner names it (Some bytes look like Windows-1252. Reopen with that encoding?) and Reopen with Encoding preselects it, marked as suggested.

Reopen with Encoding

File ▸ Reopen with Encoding reinterprets the file in any of the 18. A forced encoding wins over the byte order mark. Transcoding runs in the background with progress and a cancel, and one undecodable byte no longer fails the open: only the bytes that cannot be decoded become replacement characters.

Invalid bytes are left alone

Caxton edits bytes, not a re-encoded copy. Line operations such as duplicate and move are byte-exact even around invalid UTF-8, and Text menu transforms refuse a target that contains invalid UTF-8 and name the line, instead of rewriting those bytes as replacement characters. Mixed international text (CJK, emoji, combining marks) renders and edits correctly, with caret movement that respects grapheme clusters.