If if NSLog content variable it's displayed ok. But if I do this:
for (DDXMLElement *item in items){
title = [[[item elementsForName:@"title"] objectAtIndex:0]
stringValue];
NSLog(@"%@",tempNew.title);
}
I get "López" instead of "López"
Am I doing something wrong? Thanks!
Nathan de Vries
unread,
Nov 12, 2009, 7:39:50 PM11/12/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kis...@googlegroups.com
On 13/11/2009, at 5:04 AM, Jorge wrote: > [[DDXMLDocument alloc] initWithXMLString:content options:0 > error:&error];
The problem is likely to be with the NSString you're initialising the document with. Make sure you use NSISOLatin1StringEncoding when creating the string, using something like NSString's initWithData:encoding: API.
Cheers,
Nathan de Vries
Jorge
unread,
Nov 13, 2009, 5:03:09 AM11/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KissXML
I'm initializing the string in the right way (I think):