我有一个标签,我必须在其中放置从数据库中提取的中文字符串,但没有任何结果。我注意到字符串没有从数据库中提取,而所有其他工作正常。我能做些什么?
char *subTitle= (char*)sqlite3_column_text(statement,13);
NSLog(@" The sutitle is %s", subTitle);
//The sutitle is
rowTable.sottotitolo = [[NSString alloc]initWithUTF8String: subTitle];
NSLog(@"The subtitle is %@", rowTable.sottotitolo);
//The subtitle is
使用西方字母以外的方法?
NSLog(@"The string in chinese is %@", self.chinaTable.subtitle);
//The string in chinese is
//is not printed to the screen,but the database is written correctly
self.labelTitle.text = self.chinaTable.subtitle;
//empty out
提前致谢