lower() vs. casefold() in string matching and converting to lowercase February 20, 2023 by Tarik Go read @dlukes’ answer. It’s much more thorough and complete and correct than this one ever was.