Bug 320373 - Stream (album) names with foreign characters are not shown
Summary: Stream (album) names with foreign characters are not shown
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.7.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: 2.8
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-28 04:49 UTC by Federico Kereki
Modified: 2014-08-12 13:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.8


Attachments
attachment-20538-0.html (1.58 KB, text/html)
2013-05-28 15:20 UTC, Federico Kereki
Details
attachment-20538-1.dat (1 bytes, multipart/alternative)
2013-05-28 15:20 UTC, Federico Kereki
Details
amarok_streams.png (133.23 KB, image/png)
2013-05-28 15:20 UTC, Federico Kereki
Details
attachment-23915-0.html (1.30 KB, text/html)
2013-05-28 15:46 UTC, Federico Kereki
Details
attachment-23915-1.dat (1 bytes, multipart/alternative)
2013-05-28 15:46 UTC, Federico Kereki
Details
amarok_streams.png (133.23 KB, image/png)
2013-05-28 15:46 UTC, Federico Kereki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Kereki 2013-05-28 04:49:50 UTC
If you play the "Piano Café" stream from www.jazzradio.com, the stream (album) name doesn't show correctly; rather, the URL for the stream is shown.

For other channels, such as "Piano Jazz" or "Smooth 24/7", etc., the stream name is correctly displayed.

Reproducible: Always

Steps to Reproduce:
1.Go to www.jazzradio.com
2.Join up, and configure your account to use an external player
3.Click on "Paris Café" and select "Amarok" to open and play it
4.Check the playlist 
Actual Results:  
The stream (album) name is not shown; rather, its URL appears, like "http://pub7.jazzradio.com:80/jr_pariscafe_aacplus?..."

Expected Results:  
"Paris Café" should have been displayed as the stream (album) name.

With streams without foreign characters, the stream (album) name is correcly displayed, such as "Swing & Big Band - JAZZRADIO.com" or "Trumpet Jazz - JAZZRADIO.com"
Comment 1 Myriam Schweingruber 2013-05-28 07:32:10 UTC
Well, that entirely depends on the data that is sent by  the stream. If the other streams display correctly maybe the data sent is not readable or has the wrong format?

Please make sure you only use UTF-encoding on your whole system, that should be able to handle all character sets.
Comment 2 Federico Kereki 2013-05-28 11:27:25 UTC
What/how should I check for the UTF encoding?

Meanwhile, I saved the .pls file to disk, and it reads:

[playlist]
NumberOfEntries=7
File1=http://pub5.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title1=JAZZRADIO.com - Paris Café
Length1=-1
File2=http://pub7.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title2=JAZZRADIO.com - Paris Café
Length2=-1
File3=http://pub4.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title3=JAZZRADIO.com - Paris Café
Length3=-1
File4=http://pub2.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title4=JAZZRADIO.com - Paris Café
Length4=-1
File5=http://pub1.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title5=JAZZRADIO.com - Paris Café
Length5=-1
File6=http://pub6.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title6=JAZZRADIO.com - Paris Café
Length6=-1
File7=http://pub3.jazzradio.com:80/jr_pariscafe_aacplus?b1dc4379a497384d
Title7=JAZZRADIO.com - Paris Café
Length7=-1

Here the titles show up correctly. How can I check the stream itself?
Comment 3 Myriam Schweingruber 2013-05-28 11:42:12 UTC
(In reply to comment #2)
> What/how should I check for the UTF encoding?

The command "locale" will tell you the encoding you use, more information about locale is in the man page.

> Meanwhile, I saved the .pls file to disk, and it reads:
...
> Here the titles show up correctly. 

Which suggests it is indeed the stream not using a correct encoding for their text. Sadly there is still a lot of ISO encoding out there, especially on servers, and those can cause problems.

> How can I check the stream itself?

No idea TBH, I have to ask a developer for that. In any case, there is little you can do if they don't use UTF encoding in their stream.

For now I leave this open, but I am not sure there is much we can do on our side.
Comment 4 Federico Kereki 2013-05-28 12:28:46 UTC
Everything is UTF-8 -- "locale" outputs:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

If some sites use LATIN-1 or similar, allowances can be made in code so most --not all, but most-- characters will still be shown correctly. If only a few accented characters are expected/allowed, I guess Amarok could manage to deal with both encodings.
Comment 5 Edward Hades 2013-05-28 15:16:36 UTC
Works fine for me on v2.7.0-310-gb7c3b65: in the playlist the stream name is shown correctly (I've used the playlist).
Comment 6 Federico Kereki 2013-05-28 15:20:35 UTC
Created attachment 80123 [details]
attachment-20538-0.html

Hi!

I enclose a screen shot showing the problem.

[image: Inline image 1]

Thanks for your attention!

Best regards,
F.Kereki



On Tue, May 28, 2013 at 12:16 PM, Edward Hades <edward.hades@gmail.com>wrote:

> https://bugs.kde.org/show_bug.cgi?id=320373
>
> Edward Hades <edward.hades@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |edward.hades@gmail.com
>
> --- Comment #5 from Edward Hades <edward.hades@gmail.com> ---
> Works fine for me on v2.7.0-310-gb7c3b65: in the playlist the stream name
> is
> shown correctly (I've used the playlist).
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 7 Federico Kereki 2013-05-28 15:20:37 UTC
Created attachment 80124 [details]
attachment-20538-1.dat
Comment 8 Federico Kereki 2013-05-28 15:20:37 UTC
Created attachment 80125 [details]
amarok_streams.png
Comment 9 Myriam Schweingruber 2013-05-28 15:30:23 UTC
Well, Edward uses the git version which is over 300 commits ahead of yours, so this might well be already fixed for the upcoming Amarok 2.8
Comment 10 Federico Kereki 2013-05-28 15:46:49 UTC
Created attachment 80126 [details]
attachment-23915-0.html

Hi!

That may well be the case. In any case, I enclose an image I sent to Edward:

[image: Inline image 1]

I'll watch out for 2.8, but is there some way to check all fixes to see if
any referred to this sort of problem?

Best regards,
F.Kereki



On Tue, May 28, 2013 at 12:30 PM, Myriam Schweingruber <myriam@kde.org>wrote:

> https://bugs.kde.org/show_bug.cgi?id=320373
>
> --- Comment #9 from Myriam Schweingruber <myriam@kde.org> ---
> Well, Edward uses the git version which is over 300 commits ahead of
> yours, so
> this might well be already fixed for the upcoming Amarok 2.8
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 11 Federico Kereki 2013-05-28 15:46:51 UTC
Created attachment 80127 [details]
attachment-23915-1.dat
Comment 12 Federico Kereki 2013-05-28 15:46:51 UTC
Created attachment 80128 [details]
amarok_streams.png
Comment 13 Myriam Schweingruber 2014-08-12 09:00:06 UTC
What is the status of this one? Amarok 2.8 is out since a year now...
Comment 14 Federico Kereki 2014-08-12 10:21:31 UTC
I just checked version 2.8.0, and the stream name, "Piano Café", now shows up properly.
Comment 15 Myriam Schweingruber 2014-08-12 13:13:55 UTC
Great, thank you for the feedback :)