in reply to Re^2: Matching ampersands that are NOT part of an HTML entity?
in thread Matching ampersands that are NOT part of an HTML entity?

Uh... no. Did you run it? The print Encode::encode_utf8($utf8); is just there to see the intermediary step. Encode::encode_utf8 makes the output "safe" for the terminal: no "wide character" warnings.