Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 36778
Status: resolved
Left: 0 min
Priority: 0/0
Queue: XML-XSPF

Owner: Nobody
Requestors: MAVIT <cpan.org [...] mavit.org.uk>
Cc:
AdminCc:

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



X History Display mode: Brief headersFull headers
#   Sun Jun 15 17:00:22 2008 MAVIT - Ticket created  
Subject: XML::XSPF writes invalid XML for non-ASCII characters
[text/plain 526b]
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;".

#   Sat Nov 08 18:48:16 2008 DANIEL - Correspondence added  
[text/plain 12b]
Fixed in 0.7
#   Sat Nov 08 18:48:17 2008 RT_System - Status changed from 'new' to 'open'  
#   Sat Nov 08 18:56:00 2008 DANIEL - Status changed from 'open' to 'resolved'