Help - Search - Members - Calendar
Full Version: Vorbis comments garbled under Linux
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - General
Ogig
Hi,

I'm using EAC on windows with this commandline to encode my oggs:

CODE
-N %n -t "%t" -a "%a" -l "%g" -d %y -c "ENCODING PARAMETERS=-q 4"


When I use ogginfo under Linux to display the tags it gives my garbled characters where used to be German umlaute like ü, ö, ä etc. As far as I understand from ogg vorbis mailinglist is that vorbis comments are always utf8, but windows has some problems with codepages ? Hmm, does anybody have suggestions how to change my encoding style such that I enjoy correct tag display on both windows and linux ?
Is there a way to correct my already existing files on linux ?

Thanks.
zokik
Open an ogg file in a hex editor, e.g. in khexedit. For every non english character you should see 2 characters instead of just one. If not, EAC or windows obviously did something wrong. If you are using windows 98 or even 95, that might be the cause. All ogg vorbis files I encoded with cdex under win xp are fine. Even with ogginfo (konsole) under linux I get proper characters displayed, as well as in xmms of course.

I had similar problems with some flac files (flac also uses vorbis comments & utf8). When I corrected tags with xmms the data was not written using utf8. Then I had to change tags from command line. Try command "vorbiscomment".
Ogig
That's weird, when I use "vorbiscomment -l my.ogg" I get correct display of these characters, whereas ogginfo and XMMS return garbage.

I used WinXP too to create the files. When I check the files with hexedit I have two dots where the umlaut character should be. Don't know what that means though. Maybe I should check out CDex if it produces different tags than EAC + oggenc, but I would really like to keep my current configuration.
zokik
Then you probably just need to set the appropriate char-set (I have iso 8859-2, that is for mid-european, but I also see right german letters) in xmms. I guess same goes for Konsole.
Ogig
My language environment is set to de_DE and folder and file names display correctly. I googled for char-set quite a while, but didn't find anything useful. Can you give me a hint how to change it ?
zokik
Again about the tags... I just checked a file with ü and ö in vorbis comments and for ü there are these 2 characters (in hex): c3 bc, and for ö: c3 b6. If you see the same values when yuo open with a hex editor, you can be sure the files are ok and it's the fonts/charsets that need to be fixed.

For xmms:

in options -> settings (crtl P) select "fonts" tab. Make sure support for multibyte is enabled.
In the same tab you can choose a font for playlist and a font for main window. I changed the playlist font to:
CODE
-adobe-helvetica-bold-r-normal-*-*-120-*-*-p-*-iso8859-2

The part that matters is iso8859-X, where X is 1 or 15 for western, 2 for middle european, for others I don't know. I think umlaut characters should work ok with any of 1, 2 or 15. I suggest you rather browse for font than copy&paste mine, just in case you maybe don't have exactly that font installed. Charsets are at "filter" tab.
That's all I changed and all characters are displayed correctly.

For command line (ogginfo, vorbiscomment) I don't know, for me umlaut characters worked out of the box, although my system is set to slovenian language. Maybe you should try *that* laugh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.