How to reproduce
1. Create a test file with non-Western encoding. I use the text in Russian which means "Cyrillic text UTF-8."
Code: Select all
Кириллический текст UTF-8.
2. Open the empty Notepad. Open the file in Lister, by default the mode should be UTF-8 (7) - Lister correctly detects it.
3. Use the keyboard commands Ctrl+A, Ctrl+C or menu Edit: Select all, Copy as text. Paste in Notepad as a reference.
4. Change Lister mode to Explorer Preview (8). Select the text or part of it with mouse, use Ctrl+C. Paste in Notepad, press Enter (for new line). The copy is good.
5. Use the Lister menu Select all, Copy as text. Paste in Notepad. The copy is wrong.
Possible reason
When in the Explorer Preview mode, the commands Ctrl+A, Ctrl+C are passed directly to external handler, which correctly works with Unicode. But the menu Copy works with the internal Lister buffer, and in mode 8 Lister doesn't recognise buffer as UTF-8 (like recognises it in mode 7). The command from Copy menu uses the "raw" buffer as ANSI text instead of Unicode.
Possible solutions
General: in mode 8 don't process these menu commands internally, instead try to pass them to view handler as keyboard combinations Ctrl+A, Ctrl+C.
or
Alternative: in mode 8 detect UTF-8 text in internal buffer and copy it to Clipboard as Unicode.