Issue writing tag in a different language - somebody please help

patrick machielse patrick at hieper.nl
Sun Mar 23 12:01:41 UTC 2014


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



More information about the taglib-devel mailing list