New file from command line does not respect default encoding
Posted: Mon Mar 30, 2026 6:13 pm
When I create a new file using the TextPad command line it does not respect the settings for "default encoding."
I have "default encoding" set to UTF-8 for the Default and Text document classes (among others). However when I start TextPad from the command line with the name of a non-existent file .. for example:
.. it creates baz.txt with ANSI encoding instead of UTF-8.
If instead I create the file from within the editor with CTRL-N, the file is created with the expected UTF-8 encoding.
Is this expected behavior or a bug?
I am using TextPad 9.9.5.
I have "default encoding" set to UTF-8 for the Default and Text document classes (among others). However when I start TextPad from the command line with the name of a non-existent file .. for example:
Code: Select all
> "C:\Program Files\TextPad\textpad.exe" baz.txtIf instead I create the file from within the editor with CTRL-N, the file is created with the expected UTF-8 encoding.
Is this expected behavior or a bug?
I am using TextPad 9.9.5.