Need unicode characters in UITableView from SQLlite database

Posted by Lee Armstrong on Stack Overflow See other posts from Stack Overflow or by Lee Armstrong
Published on 2010-06-12T15:37:24Z Indexed on 2010/06/13 10:02 UTC
Read the original article Hit count: 267

I have some NSString varibales that incude items like Ð and Õ and if I do

cell.textLabel.text = person.name;

and if it contains one of those characters the cell.textlabel is blank!

I have discovered that if I use

NSString *col1 = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)];

To pull my data back it pulls back null, however using the deprectared method

NSString *col1 = [NSString stringWithCString:(char *)sqlite3_column_text(compiledStatement, 0)];

Shows the characters!

Any ideas?

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about sqlite