A nice article that talks about the problems with comparing strings when multi-byte Unicode characters are used.
Torsten Ullrich. Real-world String Comparison. How to handle Unicode sequences correctly. acmqueue 2021-07-29. Available in html format or pdf format
An earlier version of this page was published on new.pmean.com.