Here the encoding "UTF-8 with byte-order mark" is preferred.
When I create a .TXT file in Total Commander with Shift+F4, it has the encoding "ANSI".
In such a case, should the encoding "UTF-8 with byte-order mark" perhaps also be used in future?
Moderators: Hacker, petermad, Stefan2, white
That's a function of the called editor.tuska wrote: 2024-02-05, 17:21 UTC When I create a .TXT file in Total Commander with Shift+F4, it has the encoding "ANSI".
In such a case, should the encoding "UTF-8 with byte order mark" perhaps also be used in future?
Thanks!
In my case, however, the coding should be determined by Total Commander.
I don't expect that TC knows the syntax of any other Editor than the default Windows Notepad.tuska wrote: 2024-02-05, 17:34 UTC In my case, however, the coding should be determined by Total Commander.
That depends on your Windows version. In Windows XP, 7 and 8.1 it is ANSI, in Windows 10 it is UTF-8 (without BOM) that is the default (if there are non-English characters in the document).When I create a .TXT file in Total Commander with Shift+F4, it has the encoding "ANSI".
That's the point! NO, it does not! It creates the file! And only after that - calls external editor and passes the full filepath as a argument to it.if it simply passed file name
If a .txt file is created in Total Commander with Shift+F4,petermad wrote: 2024-02-06, 05:28 UTCThat depends on your Windows version. In Windows XP, 7 and 8.1 it is ANSI, in Windows 10 it is UTF-8 (without BOM)When I create a .TXT file in Total Commander with Shift+F4, it has the encoding "ANSI".
that is the default (if there are non-English characters in the document).
I don't have Windows 11 (only about 24% does), but I think I read somewhere that it uses UTF-8 with BOM.
Sorry I should have mentioned that what I wrote applies to Notepad (Notepad is Windows version dependent)If a .txt file is created in Total Commander with Shift+F4,
then the editors "EmEditor" and "Notepad++", for example, use "ANSI" as the encoding.
The editors "Notepad3" and "PSPad" use the encoding set in the editor.
Windows 11-Editor (Notepad) uses encoding: UTF-8.
No problem, I took it into account and wanted to compare a few editors anyway.petermad wrote: 2024-02-06, 11:20 UTCSorry I should have mentioned that what I wrote applies to Notepad (Notepad is Windows version dependent)If a .txt file is created in Total Commander with Shift+F4,
then the editors "EmEditor" and "Notepad++", for example, use "ANSI" as the encoding.
The editors "Notepad3" and "PSPad" use the encoding set in the editor.
Windows 11-Editor (Notepad) uses encoding: UTF-8.
An external editor, independently of TC, might be configured to create a new file in CP1250. Thanks for extra BOM then.AntonyD wrote: 2024-02-06, 09:52 UTC we must beforehand to supply this new file template with a proper BOM signature, otherwise this file will be treated as ANSI.
You did not get what I've wrote? INITIAL side - which in fact RESPONSIBLE for a new file appearance on a diskAn external editor, independently of TC, might be configured to create a new file in CP1250