iOS- 读取XML中文乱码

NSASCIIStringEncoding 改成 NSUTF8StringEncoding

   NSString *xmlFilePath = [[NSBundle mainBundle] pathForResource:@"album_desc_and_url" ofType:@"xml"];
    
   NSString *xmlContent =  [NSString stringWithContentsOfFile:xmlFilePath encoding:NSUTF8StringEncoding error:nil];

你可能感兴趣的:(iOS- 读取XML中文乱码)