Find and replace not working on Normalization Form Decomposed (NFD)

Hi bubblers,

I noticed a problem with find and replace function.

I have an app using the “filtered” function to retrieve and match elements based on files names.

I use “find and replace” function to match the NFC writing with a “regular” text. I listed all kind of accents, based on the NFC and it all works out.

Then I noticed some files (not all), get saved with Normalization Form Decomposed instead of Composed. I then have an é becoming e%CC%81 (NFD) instead of %C3%A9 (NFC).

The thing is that find and replace function doesn’t work on NFD. I tried inputing it various ways, even replacing just the accent part. It seems to work only on NFC. Is there a way to go round this ?

I thought about saving files in individual databse elements to give them a “text” field and input the name the way I want it. The issue is that I already have a lot of files stored and this would mean a huge restructuration.

Thanks a lot for your help.

Cyril.

This would be wise. Any serious apps with lots of files should have a File data type and always link files to data using that File Thing rather than the file (bubble field type) precisely so you can do stuff like update name, show size easily etc! It’s a pain but will be worth it.

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.