[TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
Moderators: Hacker, petermad, Stefan2, white
[TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
OS: Windows x64
Steps to repro:
1. create utf-8 file list w/o BOM.
2. create a file with a trademark character (U+2122) in the file name (use charmap application to lookup character and copy it to the clipboard).
3. add the file to the file list.
If add the BOM it starts to work, which means I have to always prefix the BOM into the list.
Can you remove that requirement and always treat the list file as utf-8 file even if BOM is not prefixed?
Steps to repro:
1. create utf-8 file list w/o BOM.
2. create a file with a trademark character (U+2122) in the file name (use charmap application to lookup character and copy it to the clipboard).
3. add the file to the file list.
If add the BOM it starts to work, which means I have to always prefix the BOM into the list.
Can you remove that requirement and always treat the list file as utf-8 file even if BOM is not prefixed?
- ghisler(Author)
- Site Admin
- Posts: 50561
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
Please use UTF-16 instead, it always has BOM.
The problem is that some characters valid in UTF-8 are also valid in Chinese or Korean ANSI.
The problem is that some characters valid in UTF-8 are also valid in Chinese or Korean ANSI.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
I am not quite get it. Why not to force treat it as utf-8?
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
It's doesn't correspond to reality.UTF-16 ... always has BOM.
Overquoting is evil! 👎
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
Because of backward compatibility.
However, there might be an option in wincmd.ini for 8-bit text files without BOM - something like "Define charset by file type" which would allow to choose at least Autodetect/ANSI/DOS/UTF-8 for specific file extensions.
Notice that both Unicode and its UTF-8 form aren't perfect in design. That's why automatic detection fails in some cases and we must live with it.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
Backward compatibility with DOS? The file system in the Windows already Unicode.
This has no sense, a windows files path already in unicode.Usher wrote: 2021-04-12, 20:16 UTC However, there might be an option in wincmd.ini for 8-bit text files without BOM - something like "Define charset by file type" which would allow to choose at least Autodetect/ANSI/DOS/UTF-8 for specific file extensions.
Automatic detection of that? Why you need automatic detection of unicode characters?Usher wrote: 2021-04-12, 20:16 UTC Notice that both Unicode and its UTF-8 form aren't perfect in design. That's why automatic detection fails in some cases and we must live with it.
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
Why TC should stop work in Windows 95? The file system is in UTF-16, not in UTF-8.
And a file list is just a text file. How TC would know that you'd like to deal with a very specific kind of text?
And a file list is just a text file. How TC would know that you'd like to deal with a very specific kind of text?
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
How is it related to the question about the BOM presence?Usher wrote: 2021-04-16, 21:24 UTC Why TC should stop work in Windows 95? The file system is in UTF-16, not in UTF-8.
To not know it the unicode is exist in first place.Usher wrote: 2021-04-16, 21:24 UTC And a file list is just a text file. How TC would know that you'd like to deal with a very specific kind of text?
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
I'm afraid I don't understand your English. I can't help you.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: [TC9.51] LOADSEARCH/LOADSELECTION does not work over utf-8 file list w/o BOM
Moderator message from: Hacker
andry81,
Please stay polite.
Please stay polite.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.