Advise for making my tags work in Windows

Lukáš Lalinský lalinsky at gmail.com
Tue Nov 13 07:01:39 UTC 2012


There are two separate issues:

 1) I don't know about Windows 8, but no Microsoft software up to
Windows 7 can't read ID3v2.4 tags. With TagLib 1.8, you can force it
to write ID3v2.3 tags, which Windows should be able to read.

 2) You can pass Unicode strings on Windows just fine. You just need
to use the Unicode API to call the application and to retrieve them.
See CommandLineToArgvW()/GetCommandLineW().

Here is an example of a hack I do to get UTF-8 parameters on Windows:

https://github.com/lalinsky/chromaprint/blob/master/examples/fpcalc.c#L318

Lukas


On Tue, Nov 13, 2012 at 5:25 AM, Jeremy Gregorio
<jeremy.firefox.addon at gmail.com> wrote:
>
> Hi all,
>     I'm using the Poco C++ library to make what I hope are UTF 8 and/or 16 strings. I'm doing this because I want to be able to pass unicode characters on a Windows command line and in an English copy of Win XP and well, that just ain't happening :P. I thought I might get clever and base 64 encode the string before passing it, then decode it. This more or less works in Linux, but not so well in Windows, where the OS' (admittedly crummy) unicode support seems to be hamstringing me.
>
>     I took the demo tagwriter app, and added this:
>
>     std::string decoded;
>     std::wstring decoded16;
>
>     Poco::URI::decode ( argv[i + 1] , decoded ) ;
>
>
>     Poco::UnicodeConverter::toUTF16(decoded, decoded16);
>
>     TagLib::String value ( decoded16 );
>
>    TagLib::List<TagLib::FileRef>::Iterator it;
>       for(it = fileList.begin(); it != fileList.end(); ++it) {
> ....
>
>   Then I build and run this under Linux and copy the mp3 I tagged to Windows. I pass it some Japanese encoded as base 64 which Poco seems to decode OK. The tag is there, I can even read it in Tag Scanner in Windows, but just plain Windows XP won't pick up on the tag in the file properties.
>
>    Anyway does anyone have any tips/advise/horror stories on getting tags working in Win XP's tagging. I've done it once before calling directly to tag lib, but I would like to rely on the command line.
>
>   Thanks all!
>
> --
> Jeremy D Gregorio
> Sr Consultant
> #: 520-275-5352
> fax: 520-747-2540
>
>
>
>
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>


More information about the taglib-devel mailing list