Tag: 变音符号

带有元音变音的iOS HttpRequest的长度不正确

在iOS中,我正在构build一个http请求,如下所示: NSURL* url = [ NSURL URLWithString:[ NSString stringWithFormat: @"%@%@", [ HPSWebService getBaseURL ], @"Sync/PushObject"] ]; // 'request' is defined within the base class and is set here to the class-specific server url request = [[NSMutableURLRequest alloc] initWithURL:url]; NSString* jsonRequest = [NSString stringWithFormat: @"{\"collection\":\"responses\",\"id\":\"%@\",\"objectjson\":%@}",response.id,response.json]; NSLog(@"HPSPushResponsesWebService jsonRequest = %@",jsonRequest); NSData *requestData = [NSData dataWithBytes:[jsonRequest UTF8String] length:[jsonRequest […]

如何处理iOS SQLite中的重音字符?

我需要执行对大小写不敏感的SELECT查询。 为了演示目的,我创build了一个如下表格: create table table ( column text collate nocase ); insert into table values ('A'); insert into table values ('a'); insert into table values ('Á'); insert into table values ('á'); create index table_cloumn_Index on table (column collate nocase); 然后,我在执行下列查询时得到这些结果: SELECT * FROM table WHERE column LIKE 'a'; > A > a SELECT * FROM […]