Bug 142797 - shoutcast metadata displayed as ascii (latin-1?) instead of utf-8
Summary: shoutcast metadata displayed as ascii (latin-1?) instead of utf-8
Status: RESOLVED FIXED
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: 4.1 (Qt 4.4)
Platform: Debian testing Linux
: LO normal
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
: 178366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-10 19:38 UTC by christian
Modified: 2008-12-30 16:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christian 2007-03-10 19:38:01 UTC
Version:           1.4.4 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When playing a shoutcast stream accented characters encoded in utf-8, amarok displays the cute little squares in place of the accented characters.

Example stream : http://broadcast.infomaniak.net:80/rsr-la1ere-high.mp3 (swiss french public radio)

I search some protocol information to find out if it was the streamer's or amarok's fault, but I couldn't find anything. I also couldn't find another shoutcast stream which uses accented characters (except the other swiss public radio channels).

Winamp displays the title information correctly. I think amarok should display it in utf-8 or maybe use some kind of autodetection.
Comment 1 Kevin Funk 2007-03-10 20:03:16 UTC
I can confirm this in 1.4.5. It doesn't work with KMPlayer (mplayer backend), either.
Comment 2 Edward Hades 2008-06-15 20:57:33 UTC
I confirm that with amarok 1.4.9.1 and amarok 2.
Comment 3 Mark Kretschmann 2008-09-08 10:06:13 UTC
We're getting the metadata as QStrings from Phonon, so I don't think it's really Amarok's fault.

It could be a problem in the Phonon backend (xinelib for me) or in Phonon, I'm not sure.
Comment 4 Mark Kretschmann 2008-12-22 09:47:48 UTC
*** Bug 178366 has been marked as a duplicate of this bug. ***
Comment 5 Matthias Kretz 2008-12-30 12:13:12 UTC
phonon-xine uses QString::fromUtf8. As far as I know the meta data specs the encoding is unspecified. So we really need to do autodetection :(. It seems that the stream linked above doesn't use utf-8, otherwise it would work...
Comment 6 Matthias Kretz 2008-12-30 16:51:12 UTC
SVN commit 903466 by mkretz:

we need to detect the encoding of the meta data strings. Not everything out there is UTF-8 :(
BUG: 142797


 M  +99 -17    xinestream.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=903466