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