iRail / The-DataTank

DEPRECATED - new repo at http://github.com/tdt/core
http://thedatatank.com
26 stars 9 forks source link

Non utf8 characters break the xml formatter #141

Closed coreation closed 11 years ago

coreation commented 11 years ago

If there's a non utf8 character in the source and it has to be printed through the xml formatter, the formatter breaks. It doesn't even try to echo the "strange" character it just returns the string of xml it has built so far and calls it a day! Very weird imho.

Solution: utf8_encode values and keys Future solution: Framework should be adjusted so that the file encoding is given as part of the resource description.