Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 4126

Total Commander (English) • Re: Lister does not remember changed encoding

$
0
0
2Gorazd
TC automatically detects the file format, but that does not work for UTF-8 files when.
1. You have saved the file as UTF-8 without BOM (Byte Order Mark)
2. AND there is only 1 line in your file.

Unfortunately newer Notepad versions in Windows 10 and 11 does not save UTF-8 files with BOM by default - you have to choose that manually under "Encoding", when you save the file in Notepad.

If it is possible, just add an empty line to your UTF-8 files, then TC will detect them correctly both with and without BOM.

You can chnage the default encoding to UTF8 with BOM in Windows' Registry:

Code:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad]"iDefaultEncoding"=dword:00000004
See also: https://www.ghisler.ch/board/viewtopic.php?p=429401#p429401

Statistics: Posted by petermad — 2024-07-23, 12:19 UTC



Viewing all articles
Browse latest Browse all 4126