LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-20-2012, 09:39 PM   #1
jack_green
Member
 
Registered: Jul 2011
Posts: 71

Rep: Reputation: Disabled
ubuntu 11.10 rhythmbox Japanese display error


Hello,guys. I love Ubuntu Desktop OS and I use it from ubuntu 10.04. But what the thing bother me is that I cannot make rhythmbox working perfectly. I have downloads many Japanese songs but rhythmbox cannot display Japanese fonts. Any solutions ? Thanks so much.
Attached Images
File Type: png ubuntu_11.10_rhythmbox.png (196.8 KB, 2 views)

Last edited by jack_green; 01-20-2012 at 10:17 PM.
 
Old 01-21-2012, 08:32 AM   #2
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,338

Rep: Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202
Your system most likely uses UTF-8 as the character set, and vorbis and flac comments are also in UTF-8 by default. But id3 comments are often found in local encodings. I'd bet most of those file's tags are in shift-JIS encoding.

Some player programs have the ability to force the read encoding for id3 comments. I don't know about rhythmbox though, so check your options.

A better choice would be to convert the comments of the files themselves. I recommend using easytag for this, as it has clear options for both the reading and writing encoding to use.
 
Old 01-21-2012, 08:43 AM   #3
jack_green
Member
 
Registered: Jul 2011
Posts: 71

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by David the H. View Post
Your system most likely uses UTF-8 as the character set, and vorbis and flac comments are also in UTF-8 by default. But id3 comments are often found in local encodings. I'd bet most of those file's tags are in shift-JIS encoding.

Some player programs have the ability to force the read encoding for id3 comments. I don't know about rhythmbox though, so check your options.

A better choice would be to convert the comments of the files themselves. I recommend using easytag for this, as it has clear options for both the reading and writing encoding to use.
sorry, it cannot help.
 
Old 01-21-2012, 08:59 AM   #4
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,338

Rep: Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202
Umm, what "cannot help"? What part of the advice I gave doesn't work for you?

It's quite obvious to me that the problem is with the encoding of the tags, so either you have to configure your player to use the correct one, or convert the tags themselves.
 
Old 01-21-2012, 09:46 AM   #5
jack_green
Member
 
Registered: Jul 2011
Posts: 71

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by David the H. View Post
Umm, what "cannot help"? What part of the advice I gave doesn't work for you?

It's quite obvious to me that the problem is with the encoding of the tags, so either you have to configure your player to use the correct one, or convert the tags themselves.

Well, I followed your advice and installed easytag on my ubuntu. But when I run that software, 30s later the PID of easytag automatically died.
 
Old 01-22-2012, 03:16 AM   #6
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,338

Rep: Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202
So something about your system or the files is making easytag crash. Then it's a problem with that particular program, not with my advice, and it would've been polite to mention that.

If you can post the output you get when you run it in a shell it may be possible to to diagnose the problem. Don't forget to do a google search too to see if anyone else is having the same problem, and whether there are any fixes already available.


Otherwise, there are other tag editors out there that may be able to do the job. I often use kid3 myself, for example (use the kid3-qt version if you don't need the full kde integration).

I just did a quick test, however, using an mp3 file I converted to shift-JIS in easytag, and while it can write tags properly in both id3v1 and id3v2 tags, it can only be set to read arbitrary encodings from id3v1 tags. id3v2 tags set to anything other than unicode* or iso8859-1 are unsupported and you only get mojibake with them.

(*It appears that id3v2.3 only supports UTF-16, but that id3v2.4 also supports UTF-8. I haven't tested this personally, and it's probably not an issue, as I'm sure all tag readers know how to interpret them properly. id3v1 tags aren't designed for storing international encodings, BTW, but they can store the raw strings, which is why so many programs let you interpret them according to different encodings).

That could still be enough to correct your files though; if they contain both v1 and v2 tags, then you can copy the readable v1 tags to the v2 fields, and at least get a partial correction.


In other news, I've also just discovered mid3iconv, supplied with the python-mutagen package, which is a cli program designed for converting encodings. I just ran a test like this (using -d and -p so that it only outputs the changes that would be made), and everything worked except the comment, for some reason. There seems to be something about the comment tag format that's confusing it.
Code:
mid3iconv -p -d -e SHIFT-JIS file.mp3
So if you try it, be sure to operate on copies of the files, at least until you're sure it's working correctly.


And here's one more option for you, although it's a bit more work. If you get a command-line program like id3v2 that outputs tag data in a useful way, then you can run it through the regular iconv to convert it into a clean utf-8 encoding, and use whatever tagging program you like to manually update the files accordingly. This command worked cleanly on my test file:

Code:
id3v2 -l file.mp3 | iconv -f SHIFT-JIS -t UTF-8 >> tagile.txt
The last part is there to redirect (appending) the output to a text file, of course.
 
1 members found this post helpful.
Old 01-22-2012, 04:12 AM   #7
jack_green
Member
 
Registered: Jul 2011
Posts: 71

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by David the H. View Post
So something about your system or the files is making easytag crash. Then it's a problem with that particular program, not with my advice, and it would've been polite to mention that.

If you can post the output you get when you run it in a shell it may be possible to to diagnose the problem. Don't forget to do a google search too to see if anyone else is having the same problem, and whether there are any fixes already available.


Otherwise, there are other tag editors out there that may be able to do the job. I often use kid3 myself, for example (use the kid3-qt version if you don't need the full kde integration).

I just did a quick test, however, using an mp3 file I converted to shift-JIS in easytag, and while it can write tags properly in both id3v1 and id3v2 tags, it can only be set to read arbitrary encodings from id3v1 tags. id3v2 tags set to anything other than unicode* or iso8859-1 are unsupported and you only get mojibake with them.

(*It appears that id3v2.3 only supports UTF-16, but that id3v2.4 also supports UTF-8. I haven't tested this personally, and it's probably not an issue, as I'm sure all tag readers know how to interpret them properly. id3v1 tags aren't designed for storing international encodings, BTW, but they can store the raw strings, which is why so many programs let you interpret them according to different encodings).

That could still be enough to correct your files though; if they contain both v1 and v2 tags, then you can copy the readable v1 tags to the v2 fields, and at least get a partial correction.


In other news, I've also just discovered mid3iconv, supplied with the python-mutagen package, which is a cli program designed for converting encodings. I just ran a test like this (using -d and -p so that it only outputs the changes that would be made), and everything worked except the comment, for some reason. There seems to be something about the comment tag format that's confusing it.
Code:
mid3iconv -p -d -e SHIFT-JIS file.mp3
So if you try it, be sure to operate on copies of the files, at least until you're sure it's working correctly.


And here's one more option for you, although it's a bit more work. If you get a command-line program like id3v2 that outputs tag data in a useful way, then you can run it through the regular iconv to convert it into a clean utf-8 encoding, and use whatever tagging program you like to manually update the files accordingly. This command worked cleanly on my test file:

Code:
id3v2 -l file.mp3 | iconv -f SHIFT-JIS -t UTF-8 >> tagile.txt
The last part is there to redirect (appending) the output to a text file, of course.


I am so sorry for my last answer.

Thanks so much
 
Old 01-22-2012, 05:07 AM   #8
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,338

Rep: Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202
No problem. Just let us know if and how you get a final fix to work.

BTW, it's not generally necessary to quote the entire previous message when responding either. It's clear who you're responding to, so it just clutters up the thread. Save the quote tags for when you really need to direct a comment towards a particular poster or a specific part of a post.
 
Old 01-22-2012, 09:30 AM   #9
jack_green
Member
 
Registered: Jul 2011
Posts: 71

Original Poster
Rep: Reputation: Disabled
Hello, guys. This is my easytag bug, any suggestion ?
Attached Images
File Type: png bug.png (35.5 KB, 3 views)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how ti display Japanese font in shell s.thamilarasan Linux - Server 1 12-21-2011 01:35 AM
Rhythmbox Magnatune error on Ubuntu Feisty mlitty Linux - Software 3 10-21-2007 02:57 AM
why can't display japanese? singying304 Linux - General 7 07-20-2006 10:30 AM
Display Japanese characters. Lowe Debian 6 06-10-2005 07:58 PM
Japanese display, fonts. Danodare Slackware 8 02-29-2004 11:47 AM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration