Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6182193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:09:30+00:00 2026-05-24T01:09:30+00:00

I just try to use JSON for the first time. But my data is

  • 0

I just try to use JSON for the first time. But my data is japanese but it show in cell in UTF format (\u358\u798\u789 Blah Blah Blah)

please take a look to my code.

NSError *theError = nil;
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.blahblah.com"]];
NSURLResponse *theResponse =[[NSURLResponse alloc]init];
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&theResponse error:&theError];      
NSMutableString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
//NSDictionary *jsonDictionaryResponse = [string JSONValue];
self.city = [NSMutableArray arrayWithArray:[string componentsSeparatedByString:@"\""]];

What can dictionary and JSONValue do ?
How can I show it in japanese ? Am I wrong in encoding ?

very thank for you help ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:09:31+00:00Added an answer on May 24, 2026 at 1:09 am

    you have to parse your json file first. Main JSON parsing libraries for Objective-C are:

    • JSONKit
    • TouchJSON
    • yajl
    • NextiveJson

    so first, parse you JSON file, then assign the value to self.city (I don’t see any other error).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now we just use something like this stopWatch.Start(); try { method(); } finally
I use jquery 1.6.4 and I just try to get city corresponding to a
I try to use autocomplete jquery-ui script, but from the documentation it's explain that
I try to implement basic data feed example and all I get is just:
I'm just starting to use the Twitter API to retrieve data using jQuery. I've
i have just install the xcode 4.2.1 with ios5 and i try to use
I used mmap(just try to understand how mmap works) to allocate 96k anonymous memory,
Is there a way to tell ifort or gfortran to just try to parse
I'm just starting to try out phpunit on some existing code. The naming convention
I'm just starting to try to pick up the J language, and am confused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.