Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.3
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MDLmaster-
MDL-37157-2 -
Description
We received a report that two users filing the (apparently) exact same string in a cloze question were "judged" differently.
The students were supposed to answer "répondre" (in french).
- In one case, the equivalent unicode string was "72 65 CC 81 70 6F 6E 64 72 65" (the "é" is represented as "65
CC 81", which is "e" + "ACUTE" - In the other case, the equivalent unicode string was "72 C3 A9 70 6F 6E 64 72 65" (the "é" is represented as "C3 A9", which is "EACUTE"
This looks like a use case for using Normalizer:
Normalizer::normalize($string, Normalizer::FORM_D)
|
on all strings-to-be-compared (or FORM_C, I'm not quite sure).
So far I failed to find where this could be tested, a pointer would be helpful.
Cheers, OdyX