Skip Menu |

This queue is for tickets about the XML-XSPF CPAN distribution.

Report information
The Basics
Id: 36778
Status: resolved
Priority: 0/
Queue: XML-XSPF

People
Owner: Nobody in particular
Requestors: cpan.org [...] mavit.org.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.6
Fixed in: (no value)



Subject: XML::XSPF writes invalid XML for non-ASCII characters
XML::XSPF::toString carries out entity encoding on the XML document before returning it. However, strings in XSPF should be UTF-8, not entity encoded. This causes playlists containing non-ASCII characters to be rejected by, for example, Squeezecenter and http://validator.xspf.org/. Simply commenting out the line $string = encode_entities($string, '^\n\r\t !\#\$%\(-;=?-~<>&"'); appears to be sufficient to create valid output. Symbols "<", ">", and "&" still get correctly encoded as "&lt;", "&gt"; and "&amp;".
Fixed in 0.7