After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582896 - Invalid character encoding for iso-8859-7
Invalid character encoding for iso-8859-7
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: Metadata
1.4.3
Other Linux
: Normal normal
: 1.5.0
Assigned To: Banshee Maintainers
Banshee Maintainers
: 601660 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-16 20:07 UTC by costas.magnuse
Modified: 2009-11-12 12:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description costas.magnuse 2009-05-16 20:07:20 UTC
Hello to all!... 

Unfortunately Banshee does not display greek characters in the right encoding. 

For example in the track's name I see Çìåñïëüãéï instead of Ημερολόγιο. 

So the problem is that banshee uses iso-8859-1 to display such information, while my tag information is in iso-8859-7.

When I right click the track and go to "Edit Track Information", I am experiencing the same problem, every Greek character is badly displayed.
However, when I go to the Properties Tab of the Track Editor, Greek characters in "Directory" and "Full Path" field are properly being displayed....


Would you recommend any solution for my problem?

Thank you very much, 


Constantine Tsardounis
http://costis.name
Comment 1 Alexander Kojevnikov 2009-05-17 01:47:59 UTC
Is it and mp3 file? If it is, which tag version does it have, ID3v1 or ID3v2? 

Could you install eye3D and run this from the terminal:

$ eye3D -v /path/to/file.mp3
Comment 2 costas.magnuse 2009-05-17 18:26:30 UTC
Thank you so much for your response, Alexander.

All the postscripted examples are using Gnome's Terminal.

It's bad for my case, right?

=============
It should be:
=============

Hmerologio.mp3	[ 3.85 MB ]
-------------------------------------------------------------------------------
Time: 04:12	MPEG1, Layer III	[ 128 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------
ID3 v1.1:
title: Ημερολόγιο		artist: Συνήθεις Ύποπτοι
album: Μέρες Αδέσποτες		year: None
track: 1		genre: Unknown (id 255)
-------------------------------------------------------------------------------
ID3 Frames:
<Title/songname/content description (TIT2): Ημερολόγιο>
<Lead performer(s)/Soloist(s) (TPE1): Συνήθεις Ύποπτοι>
<Album/Movie/Show title (TALB): Μέρες Αδέσποτες>
<Track number/Position in set (TRCK): 01>
<Content type (TCON): (255)>

(I received the above pasting the second example below (that with Çìåñïëüãéï characters) changing the encoding from iso8859-1 to iso8859-7 from kate)



Instead I receive:
============
1st example:
============
$ export LC_ALL=el_GR
$ eyeD3 -v Hmerologio.mp3 

Hmerologio.mp3	[ 3.85 MB ]
-------------------------------------------------------------------------------
Time: 04:12	MPEG1, Layer III	[ 128 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------
ID3 v1.1:
title: ??????????		artist: ???????? ???????
album: ????? ?????????		year: None
track: 1		genre: Unknown (id 255)
-------------------------------------------------------------------------------
ID3 Frames:
<Title/songname/content description (TIT2): ??????????>
<Lead performer(s)/Soloist(s) (TPE1): ???????? ???????>
<Album/Movie/Show title (TALB): ????? ?????????>
<Track number/Position in set (TRCK): 01>
<Content type (TCON): (255)>


============
2nd example:
============

$ export LC_ALL=el_GR.UTF-8
$ eyeD3 -v Hmerologio.mp3 

Hmerologio.mp3	[ 3.85 MB ]
-------------------------------------------------------------------------------
Time: 04:12	MPEG1, Layer III	[ 128 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------
ID3 v1.1:
title: Çìåñïëüãéï		artist: ÓõíÞèåéò ¾ðïðôïé
album: ÌÝñåò ÁäÝóðïôåò		year: None
track: 1		genre: Unknown (id 255)
-------------------------------------------------------------------------------
ID3 Frames:
<Title/songname/content description (TIT2): Çìåñïëüãéï>
<Lead performer(s)/Soloist(s) (TPE1): ÓõíÞèåéò ¾ðïðôïé>
<Album/Movie/Show title (TALB): ÌÝñåò ÁäÝóðïôåò>
<Track number/Position in set (TRCK): 01>
<Content type (TCON): (255)>

============
3rd example:
============

$ export LC_ALL=el_GR.ISO-8859-7
$ eyeD3 -v Hmerologio.mp3 
Traceback (most recent call last):
  • File "/usr/bin/eyeD3", line 25 in <module>
    from eyeD3 import *;
  • File "/var/lib/python-support/python2.6/eyeD3/__init__.py", line 37 in <module>
    LOCAL_ENCODING = locale.getpreferredencoding(do_setlocale=True);
  • File "/usr/lib/python2.6/locale.py", line 549 in getpreferredencoding
    setlocale(LC_CTYPE, "")
  • File "/usr/lib/python2.6/locale.py", line 513 in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Comment 3 Alexander Kojevnikov 2009-05-17 23:47:26 UTC
(In reply to comment #2)
> ID3 v1.1:

Well, that explains it. The problem with ID3v1 is that it supports only ISO-8859-1 [1], if you want Unicode characters you need to convert the tags to ID3v2.

In the past I used a tool called ID3iconv [2] to convert. You can also use a full-fledged tagger such as MusicBrainz Picard [3] to properly tag your music files. I personally always do this before adding any files to my library.

I'm closing the bug as NOTGNOME, feel free to email me directly if you have troubles updating your tags.

[1] http://en.wikipedia.org/wiki/Id3#Criticisms_and_problems
[2] http://www.cs.berkeley.edu/~zf/id3iconv/
[3] http://musicbrainz.org/doc/PicardTagger
Comment 4 Steffen Sindzinski 2009-11-12 12:48:20 UTC
*** Bug 601660 has been marked as a duplicate of this bug. ***