Answer the question
In order to leave comments, you need to log in
How to fix encoding to UTF8 in iOS?
I get id3 tag from mp3 in iOS application from a song with a Russian name.
I use:
AVMetadataItem *item = [self.player.metaData objectAtIndex:0];
self.nameSong.text = item.stringValue;
NSLog("%@");
ÐÐРЯЧÐÐ+ШÐÐÐÐÐÐ+СТÐÐЫ+//+СÐУШÐЮТ:+1655
Answer the question
In order to leave comments, you need to log in
Maybe not relevant anymore, but I found a solution, I hope someone will find it useful
const char *charValue = [item.stringValue cStringUsingEncoding:NSISOLatin1StringEncoding];
NSString *returnStr = [[NSString alloc]initWithCString:charValue encoding:NSUTF8StringEncoding];
encoding iso-8859-1 to UTF8, objective-c, ios
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question