Problem
-
Straight up utf8_encode'ing everything is quite frankly bad practice, at least a check should be done on which encoding is used on the data that enters the formatter.
-
XML has a problem in its spec with a tag name starting with a numer, currently it's being solved by pre-pending an "i"-character in front of it, an underscore is better alternative.
Solution
Currently, the encoding should be removed, and the data just be displayed in the formatter. Replace the "i"-character with a defined pre-pending character, currently assigned with an underscore.
Problem
Straight up utf8_encode'ing everything is quite frankly bad practice, at least a check should be done on which encoding is used on the data that enters the formatter.
XML has a problem in its spec with a tag name starting with a numer, currently it's being solved by pre-pending an "i"-character in front of it, an underscore is better alternative.
Solution
Currently, the encoding should be removed, and the data just be displayed in the formatter. Replace the "i"-character with a defined pre-pending character, currently assigned with an underscore.