docs/features/encoding.md
Fresh automatically detects and handles various text encodings.
The in-memory encoding is always UTF-8. Files are converted to UTF-8 when loaded and converted back to the original encoding when saved. The encoding shown in the status bar indicates the on-disk encoding:
The current encoding is shown in the status bar. Click it to change the encoding.
Encoding detection is heuristic — Fresh sniffs byte patterns to guess the on-disk encoding, and short or ambiguous files (especially those without any non-ASCII bytes) can end up tagged incorrectly. If a file opens as garbled text, the fix is to reload it with the right encoding:
Ctrl+P → type "Reload with Encoding"Cyrillic-script files (Windows-1251) with a mix of uppercase and lowercase letters are detected automatically.
When opening files via the file browser (Ctrl+O):
Alt+E to toggle "Detect Encoding"For large files (>10MB) with non-UTF-8 encodings, Fresh shows a confirmation prompt before loading since full re-conversion is required.