Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UTF-8 Encoding of directory dump dir.xiph.org/yp.xml broken

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Joe-L



Joined: 10 Jan 2009
Posts: 9

PostPosted: Tue Aug 17, 2010 12:20 pm    Post subject: UTF-8 Encoding of directory dump dir.xiph.org/yp.xml broken Reply with quote

Hi,

the UTF-8 encoding of the directory dump (dir.xiph.org/yp.xml) is broken.

It seems that UTF-8 is applied multiple times to encode the output.

Simply open the directory dump dir.xiph.org/yp.xml in your browser to see the effects of the over encoding.
f.i. german für becomes für

However the für is displayed correctly on the website version of the directory, so something is going wrong while creating the yp.xml.

Code:
Example of over encoded ü
ü in utf8= c3 bc
c3 bc in UTF8 = c3 83 c2 bc

c3 83 c2 bc in UTF8 = c3 83 c2 83 c3 82 c2 bc
ü found in yp.xml   = c3 83       c3 82 c2 bc


It is not possible to undo the over encoding by just decoding utf8 multiple times, because some control chars (like utf8 c2 83, see above) are filtered out.

I also opened a ticket at trac for this issue, see Ticket#1729.

Regards

Joe-L
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber