Issue writing tag in a different language - somebody please help

Anand flashanand at gmail.com
Tue Mar 25 02:57:53 UTC 2014


Found the correct syntax - Thanks Patrick

        tag->itemListMap()["\251nam"] =
TagLib::StringList(TagLib::String([@"ஜில்லுனு ஒரு காதல்"
cStringUsingEncoding:NSUTF8StringEncoding],TagLib::String::UTF8));


On Sun, Mar 23, 2014 at 8:26 AM, Anand <flashanand at gmail.com> wrote:

> Hi,
>
> I think the syntax is wrong for obj-c.
>
> But i think we are in right direction.
>
> Thanks
> Anand
>
>
>
>
> On Sun, Mar 23, 2014 at 5:01 AM, patrick machielse <patrick at hieper.nl>wrote:
>
>> Op 22 mrt. 2014, om 17:05 heeft Anand <flashanand at gmail.com> het
>> volgende geschreven:
>>
>> > I am trying to tag the title of an .m4v using TagLib like this
>> >
>> > tag->itemListMap()["\251nam"] = TagLib::StringList([@“Bolt”
>> cStringUsingEncoding:NSUTF8StringEncoding]);
>> >
>> > It works because “Bolt” is in English. But the following doesn’t work -
>> since it is in different language - any body knows why?
>> >
>> > tag->itemListMap()["\251nam"] = TagLib::StringList([@“ஜில்லுனு ஒரு
>> காதல்” cStringUsingEncoding:NSUTF8StringEncoding]);
>>
>> I think you need to specify the encoding when you create the String /
>> StringList:
>>
>> For instance:
>>
>> mp4tag->setTitle(String([@"ஜில்லுனு ஒரு காதல்" UTF8String],
>> String::UTF8));
>>
>> constructors without a specific encoding Type assume Latin1.
>>
>> p.
>> --
>> Patrick Machielse
>> Hieper Software
>>
>> http://www.hieper.nl
>> info at hieper.nl
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20140324/88015fd8/attachment.html>


More information about the taglib-devel mailing list