Page 1 of 1
[solved] 794 - Search doesn't find umlauts in utf-8 files
Posted: 08.03.2019, 10:29
by larsen
Steps to reproduce:
- Place the attaced text file into any directory
- Search for "ümlaut" in that directory
The search should find the file, but it returns nothing.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 08.03.2019, 12:48
by ralfso
Hello Larsen,
I don't know how you created this text-file.
If I save this file to my HD and do a search for containing text "ümlauf" it isn't found.
If I open the file in PSPad and only save it once more (also UTF-8), the file is found for containing text "ümlaut"
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 08.03.2019, 12:58
by larsen
Saved it with UltraEdit.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 08.03.2019, 14:25
by Odamn-Ete
When I open your file in Notepadd++ it shows the folowing:
ümlaut
FC search doesn't find ümlaut, because the 'ü' isn't there.
Check your fonts and settings for UltraEdit.
In checking on this I have to confirm that FC Search doesn't find umlauts (ÄÖÜ) in .txt files in cases where the file encoding is utf-8 without BOM.
.txt files with encoding utf-8 with BOM, FC search finds the files (i.e. text in files)
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 02.04.2025, 16:10
by larsen
Came upon this problem again and noticed my old thread.
FreeCommander XE 2025 Build 927 64-bit donor
UltraEdit doesn't store a BOM. Notepad++ (8.7.8 ) shows UTF-8, but apparently saves the file with the Little-Endian-Notation "FF FE" BOM.
It works in FC when I manually configure the encoding to use for the search dialog.
However, I'd like not to be forced to use the advanced mode (for a cleaner dialog), but "Options > Advanced Mode" is needed for the encoding to be shown.
A bigger problem however is that the encoding needs to be selected
every single time the dialog is re-opened.
Same problem described here:
http://www.forum.freecommander.com/view ... af6#p38687
Proposed solution:
Default value should be UTF-8 as this will be helpful for most users. Also, the value should be restored when opening the search dialog.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 02.04.2025, 16:59
by horst.epp
larsen wrote: 08.03.2019, 10:29
Steps to reproduce:
- Place the attaced text file into any directory
- Search for "ümlaut" in that directory
The search should find the file, but it returns nothing.
It doesn't make sense to add files in this way.
You have to zip them and attach the archive.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 02.04.2025, 17:28
by larsen
As you didn't state a reason why this should be necessary, I can only guess that you mean downloading the file would change the encoding or something else.
Doesn't make a difference. Just tested it.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 02.04.2025, 21:48
by Marek
Proposed solution:
Default value should be UTF-8 as this will be helpful for most users. Also, the value should be restored when opening the search dialog.
- Select the encoding and then create new profile for the search
- Set the profile as first in the list
- Activate option "Open first profile on start"
For defining encoding you must define some search text, you can remove the text from profile in the file FreeCommander.find.ini.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 03.04.2025, 09:59
by larsen
Thanks for the workaround, but please also change this in the program itself.
Also, I still need to have the advanced mode enabled, which I prefer not to.
Main problem I see is that many users might be surprised or not even notice that the search dialog doesn't return what the user expects.
btw: There seems to be a bug regarding profiles. Although "AdvMode=1" is saved in FreeCommander.find.ini for my profile, the Advanced Mode is not enabled on opening the search dialog if it has been disabled before. But when I use "Apply selected profile (Enter)" the Advance Mode is indeed enabled. So this probably should also be enabled when opening the dialog ("Open first profile on start" is enabled). Hope this makes sense

Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 03.04.2025, 14:45
by horst.epp
larsen wrote: 02.04.2025, 17:28
As you didn't state a reason why this should be necessary, I can only guess that you mean downloading the file would change the encoding or something else.
Doesn't make a difference. Just tested it.
Browsers have many special functions and encoding.
You may get all sorts of changes to file names by simply downloading, depending on the users OS.
Packing as archive allows getting the real binary value of the file name and content you want.
Re: 794 - Search doesn't find umlauts in utf-8 files
Posted: 05.04.2025, 20:26
by larsen
Build 928 now has the encoding selection field always visible (the value is saved and restored).
@Marek: Thanks for changing this!