Now that we have updated our test check, let's restore the missing
code bits to pass the test.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
my($self, $string, $form) = @_;
$form ||= "";
- # If we're going to convert non-ASCII characters to XML entities,
- # we had better be dealing with a UTF8 string to begin with
- $string = NFC($string);
+ if ($form eq 'D') {
+ $string = NFD($string);
+ } else {
+ $string = NFC($string);
+ }
# Convert raw ampersands to entities
$string =~ s/&(?!\S+;)/&/gso;