Gentoo Archives: gentoo-user

From: "Aleksey V. Kunitskiy" <alexey.kv@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8
Date: Tue, 04 Mar 2008 14:27:07
Message-Id: 200803041626.10894.alexey.kv@gmail.com
In Reply to: [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8 by Andrew Gaydenko
1 On Tuesday 04 March 2008, Andrew Gaydenko wrote:
2 > Hi!
3 >
4 > There are many inconsistent records in freedb.org db. I mean when, say,
5 > Cp1251 charset is used instead of UTF8. Say, I have written these
6 > invalid tags to flac files (with easytag or entagged). How to repair
7 > tags to make them visible as something useful (i.e. to UTF8) insteaf of
8 > abracadabra (i.e. from Cp1251)?
9 >
10 >
11 > Andrew
12
13 You can try to export tags from flac, then iconv them and after all import it
14 back. Will look like this:
15
16 1. metaflac --export-tags-to=~/some_file.tags --no-utf8-convert track.flac
17 2. iconv -f cp-1251 -t utf-8 ~/some_file.tags > ~/some_file_fixed.tags
18 3. metaflac --remove-all-tags track.flac
19 4. metaflac --import-tags-from=~/some_file_fixed.tags --no-utf8-convert
20 track.flac
21
22 HTH
23
24 --
25 best regards,
26 Aleksey V. Kunitskiy
27 GPG/PGP: 0x12101BD2

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8 Andrew Gaydenko <a@××××××××.com>