I'm using TED Notepad in Windows 10.
When I try to open some of the .txt files I've edited in the last few days, I receive the following message: "Warning: Loaded file is binary. Edit with care." I click on OK, and the file is blank - though if I press Ctrl+A a paragraph of invisible characters is highlighted, its size roughly proportional to the length of the work (prose, not code) that I last saved. There is also a recovery file (suffix .txt.~) following each of the affected .txt files in the directory, but this does not disappear after the file is saved and closed, as was formerly the case. Files I have not recently edited before today open as normal, but are affected by the second issue of recovery files persisting in their directory.
The files are on a new micro SDXC card. I edited some, possibly all, of these files in a USB-stick installation of Linux Mint Xfce that has problems of its own (it restores itself to 'factory settings' on reboot, with all settings lost). I'm now back on Windows, for the time being at least. TED Notepad's encoding is set to UTF-8; I have not changed that or any other setting in a very long time.
I have tried:
- Opening the files using other programs (in Windows Notepad, the file appears the same, as a paragraph of blank characters; in LibreOffice Writer, the file appears as a paragraph of hash/ pound/ # symbols).
- Copying and pasting the invisible contents from TED Notepad into various new documents (yielding a paragraph of invisible characters in Windows Notepad and TED Notepad, and a single line of the same in LibreOffice Writer).
- Inserting the SD card into another computer, with the same results.
- Using online tools to attempt to recover my writing, including onlineutf8tools.com/convert-binary-to-utf8 (output remains blank).
I wonder
- why this (files loading as binary) is happening,
- whether the persistent recovery files have anything to do with it,
- if there is a way to prevent these behaviours from occurring, and
- if there is a way of rescuing my work from the blank files.
Thank you for any light you may be able to shed.