views:

38

answers:

1

hi all i am developing RSS application in which title are in Japanese language. i have grasped and display title in table cell but it is just showing me ? marks. ie ????????????? how to tackle this...

the code by which i am recieving title and displaying it in table cell is below.

int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1];
 NSString *titlestring =[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"title"];

cell.textLabel.text=titlestring;

help please...

A: 

UIKit is fully capable of handling Unicode characters so the problem is most likely in your parsing of the RSS content - and particular the way you convert the feed data to an NSString.

In order to be able to parse the content correctly you need to know which encoding it is trasfered in. Unless this have explicitly been stated in the rss header, you could assume it's in UTF-8 format.

You have not described how you obtain the data from the feed and convert it into you internal representation, but make sure you convert it with the correct encoding.

Claus Broch
@Claus Thanks for replying....i have obtain datat from the feed using touch XMl classes....i have store all these data in NSMutable Dictionary
Nauman.Khattak