Bug 212099 - amarok bad encoding for ru_RU.utf8 radio stream tags
Summary: amarok bad encoding for ru_RU.utf8 radio stream tags
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: 4.4.2 (KDE 4.5)
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
: 227909 269399 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-27 20:09 UTC by Kostya Sha
Modified: 2011-06-07 23:35 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Right encoding in qmmp & wrong in amarok (249.00 KB, image/png)
2009-10-28 01:20 UTC, Kostya Sha
Details
phonon-xine-4.4.4_disable-utf8-check.patch (726 bytes, patch)
2011-03-20 10:38 UTC, Azamat H. Hackimov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostya Sha 2009-10-27 20:09:50 UTC
Version:           2.2.0 (using KDE 4.3.2)
OS:                Linux
Installed from:    Gentoo Packages

Tags from radio stream ( icecast server ) looks like  "ÐиколÑÑкий  ÐонÑÑанÑин" for russian titles. Mplayer in console show normal encodings so i think it's amarok problem.
( http://shoutcast.byfly.by:88/zvezda stream for example, periodically have russian tags )
Comment 1 Kostya Sha 2009-10-28 01:20:18 UTC
Created attachment 37925 [details]
Right encoding in qmmp & wrong in amarok
Comment 2 Kostya Sha 2009-10-28 01:45:57 UTC
According this http://ru.wikipedia.org/wiki/Кракозябры  amarok interprets utf8 like windows-1252 (==latin1? or iso8859-1?).
Comment 3 Kostya Sha 2009-11-20 21:18:41 UTC
reproduced for 2.2.1
Comment 4 Myriam Schweingruber 2009-11-20 21:25:31 UTC
Try rescanning and use the encoding detection in the option, that should fix the issue.
Comment 5 Kostya Sha 2009-11-20 21:41:12 UTC
Radio has no relation to the collection.
Comment 6 Myriam Schweingruber 2009-11-20 21:44:55 UTC
Sorry, didn't really pay attention to that :(
But Amarok doesn't use anything else than the system settings, so if your settings are utf-8 systemwide that's what it uses. It is possible that the metadata sent by the stream is not correctly encoded. I subscribe Bart for that.
Comment 7 Bart Cerneels 2009-11-20 21:51:53 UTC
Sorry, but I don't know anything about character encodings and much less about the specifics of radio stream. As far as I can tell they are nothing like podcasts feeds.
Comment 8 Kostya Sha 2009-11-21 13:09:08 UTC
xine-ui shows properly encoded.
Comment 9 Myriam Schweingruber 2009-11-26 13:52:26 UTC
Changing status.
Comment 10 Peter Volkov 2009-11-27 08:44:20 UTC
*** This bug has been confirmed by popular vote. ***
Comment 11 Myriam Schweingruber 2009-11-27 10:28:23 UTC
Setting correct version
Comment 12 coda 2009-12-03 17:11:46 UTC
I believe these two bugs are related.  https://bugs.kde.org/show_bug.cgi?id=217228
Comment 13 Myriam Schweingruber 2009-12-03 18:33:09 UTC
(In reply to comment #12)
> I believe these two bugs are related. 
> https://bugs.kde.org/show_bug.cgi?id=217228
related maybe, but not a duplicate.

This here is a phonon bug, reassiging
Comment 14 Myriam Schweingruber 2010-04-06 14:44:47 UTC
Is this still valid with KDE SC 4.4.2/Phonon 4.4.0?
Comment 15 Kostya Sha 2010-04-06 21:36:45 UTC
Yes.
[I] kde-base/phonon-kde
     Available versions:  
        (4.3)   4.3.3 4.3.5
        (4.4)   (~)4.4.1 (~)4.4.2
        {alsa aqua debug kdeenablefinal kdeprefix pulseaudio +xine}
     Installed versions:  4.4.2(4.4)(14:35:24 04.04.2010)(alsa xine -aqua -debug -kdeenablefinal -kdeprefix)
     Homepage:            http://phonon.kde.org
     Description:         Phonon KDE Integration
[I] media-sound/phonon
     Available versions:  4.3.1 4.3.50_pre20090520 4.3.80-r1 (~)4.4.0 {alsa aqua debug gstreamer pulseaudio +xcb +xine}
     Installed versions:  4.4.0(12:42:50 04.04.2010)(alsa gstreamer xcb xine -aqua -debug -pulseaudio)
     Homepage:            http://phonon.kde.org
     Description:         KDE multimedia API
Comment 16 Myriam Schweingruber 2010-04-09 09:16:46 UTC
Thank you for the feedback.
Comment 17 Kostya Sha 2010-08-15 21:39:35 UTC
Any news? ;D Waiting fix since first amarok2 and kde4 appeared :(
Comment 18 Myriam Schweingruber 2011-01-16 18:43:29 UTC
*** Bug 227909 has been marked as a duplicate of this bug. ***
Comment 19 Azamat H. Hackimov 2011-01-17 18:54:50 UTC
Same there. Amarok 2.4.0 still affected :(.
Comment 20 Azamat H. Hackimov 2011-03-20 10:38:28 UTC
Created attachment 58185 [details]
phonon-xine-4.4.4_disable-utf8-check.patch

I disabled Unicode check in code, and now cyrillic letter displays correctly (for ogg-stream). Maybe xine already sends metadata in Unicode or isUtf8 function incorrect detects cyrillic letters, I don't know.

Here my quick dirty hack to workaround this bug.
Please note, that another encodings in stream (CP1251 for example) is still not detected correctly, but this different problem.
Comment 21 Myriam Schweingruber 2011-03-29 15:18:29 UTC
*** Bug 269399 has been marked as a duplicate of this bug. ***
Comment 22 Myriam Schweingruber 2011-06-07 23:35:17 UTC
Please use another backend, the xine backend is deprecated as the upstream development is stalled. 

You can choose between the gstreamer backend or the vlc backend, both are actively developed and maintained.