* [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8
@ 2008-03-04 13:19 Andrew Gaydenko
2008-03-04 14:26 ` Aleksey V. Kunitskiy
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Gaydenko @ 2008-03-04 13:19 UTC (permalink / raw
To: gentoo-user
Hi!
There are many inconsistent records in freedb.org db. I mean when, say,
Cp1251 charset is used instead of UTF8. Say, I have written these
invalid tags to flac files (with easytag or entagged). How to repair
tags to make them visible as something useful (i.e. to UTF8) insteaf of
abracadabra (i.e. from Cp1251)?
Andrew
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8
2008-03-04 13:19 [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8 Andrew Gaydenko
@ 2008-03-04 14:26 ` Aleksey V. Kunitskiy
2008-03-04 14:44 ` Andrew Gaydenko
0 siblings, 1 reply; 3+ messages in thread
From: Aleksey V. Kunitskiy @ 2008-03-04 14:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 862 bytes --]
On Tuesday 04 March 2008, Andrew Gaydenko wrote:
> Hi!
>
> There are many inconsistent records in freedb.org db. I mean when, say,
> Cp1251 charset is used instead of UTF8. Say, I have written these
> invalid tags to flac files (with easytag or entagged). How to repair
> tags to make them visible as something useful (i.e. to UTF8) insteaf of
> abracadabra (i.e. from Cp1251)?
>
>
> Andrew
You can try to export tags from flac, then iconv them and after all import it
back. Will look like this:
1. metaflac --export-tags-to=~/some_file.tags --no-utf8-convert track.flac
2. iconv -f cp-1251 -t utf-8 ~/some_file.tags > ~/some_file_fixed.tags
3. metaflac --remove-all-tags track.flac
4. metaflac --import-tags-from=~/some_file_fixed.tags --no-utf8-convert
track.flac
HTH
--
best regards,
Aleksey V. Kunitskiy
GPG/PGP: 0x12101BD2
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8
2008-03-04 14:26 ` Aleksey V. Kunitskiy
@ 2008-03-04 14:44 ` Andrew Gaydenko
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Gaydenko @ 2008-03-04 14:44 UTC (permalink / raw
To: gentoo-user
======= On Tuesday 04 March 2008, Aleksey V. Kunitskiy wrote: =======
> On Tuesday 04 March 2008, Andrew Gaydenko wrote:
> > Hi!
> >
> > There are many inconsistent records in freedb.org db. I mean when,
> > say, Cp1251 charset is used instead of UTF8. Say, I have written
> > these invalid tags to flac files (with easytag or entagged). How to
> > repair tags to make them visible as something useful (i.e. to UTF8)
> > insteaf of abracadabra (i.e. from Cp1251)?
> >
> >
> > Andrew
>
> You can try to export tags from flac, then iconv them and after all
> import it back. Will look like this:
>
> 1. metaflac --export-tags-to=~/some_file.tags --no-utf8-convert
> track.flac 2. iconv -f cp-1251 -t utf-8 ~/some_file.tags >
> ~/some_file_fixed.tags 3. metaflac --remove-all-tags track.flac
> 4. metaflac --import-tags-from=~/some_file_fixed.tags
> --no-utf8-convert track.flac
>
> HTH
Aleksey,
Aha, I see the idea, thanks!!
Andrew
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-04 14:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04 13:19 [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8 Andrew Gaydenko
2008-03-04 14:26 ` Aleksey V. Kunitskiy
2008-03-04 14:44 ` Andrew Gaydenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox