|Pathologically Eclectic Rubbish Lister|
Re^2: Unicode combining characters as hash keys?by Anonymous Monk
|on Sep 03, 2011 at 08:11 UTC||Need Help??|
> Hashes have no problem with combining marks.Thanks for the confirmation, I thought that was how I understood the documentation, but I wasn't sure.
> The problem is probably that the character appears both in composed and decomposed form.If they do, I don't understand where it comes from. I entered them both in composed form. Note the two "a"-like things are different, but you only see it if you use a font that makes a difference between "small alpha" and "a".
> You can use Unicode::Normalize's NFC or NFD to normalize the form.Thanks. I read up on normalization and tried replacing
as well as replacing the last for-loop with
It still doesn't work though. The error message complains about not finding $nfd_letter in the hash, although the for-loop I commented out in the original script definitely shows it was added:
The script is thus now (including the changes suggested by Jim, too):