Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does arrays handle strings containing swedish ÅÄÖ characters by using two or more indexes?
    primarykey
    data
    text
    <p>Ok, my problem is that whenever i collect data from the parser into an array where the string contains Swedish ÅÄÖ characters. In my example the</p> <pre><code>[schemaInfoArray objectAtIndex:3] </code></pre> <p>is supposed to be @"Lördag" but is saved as @"L" and the </p> <pre><code>[schemaInfoArray objectAtIndex:4] </code></pre> <p>contains the rest of the string that gets presented as @"ördag"</p> <pre><code>-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string { tempStrang = string; [schemaInfoArray insertObject:tempStrang atIndex:uppraknare]; uppraknare++; } -(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName { if ( [elementName isEqualToString:@"schemaInfo"] ) { } if ( [elementName isEqualToString:@"modfromtid"] ) { frommodarbtid = [schemaInfoArray objectAtIndex:0]; } if ([elementName isEqualToString:@"modtomtid"] ) { tommodarbtid = [schemaInfoArray objectAtIndex:1]; } if ([elementName isEqualToString:@"modrast"] ) { modrast = [schemaInfoArray objectAtIndex:2]; } if ([elementName isEqualToString:@"benamning"] ) { benamning = [schemaInfoArray objectAtIndex:3]; } if ([elementName isEqualToString:@"fromnormarb"] ) { fromnormarbtid = [schemaInfoArray objectAtIndex:4]; } if ([elementName isEqualToString:@"tomnormarb"] ) { tomnormarbtid = [schemaInfoArray objectAtIndex:5]; } if ([elementName isEqualToString:@"rast"] ) { normrast = [schemaInfoArray objectAtIndex:6]; } } </code></pre> <p>Does anyone have any thoughts about how to actually get @"Lördag" to be saved into ONE index instead of getting split into several indexes? This really destroys the structure of things that is supposed to be presented. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload