December 2023
Intermediate to advanced
242 pages
5h 28m
English
| Recipe 21 | Equalizing Incompatible Characters with normalize() |
Imagine having a cooking application, and you want to add a feature to sort recipes based on the cooking method. The code you developed performs well in sorting recipes for methods like steaming and grilling. However, when it comes to sautéing, the code fails to recognize certain recipes.
After investigating the problem, you realize that the code sometimes fails to match the word “sautéing” even though the characters appear to be the same:
| | // Notice the length of the strings |

“é” in method has a code point of U+00E9, while “é” in keyword ...
Read now
Unlock full access