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 7828259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:16:37+00:00 2026-06-02T10:16:37+00:00

I have an issue with Json response and accent characters. I have this pice

  • 0

I have an issue with Json response and accent characters. I have this pice of code;

SBJsonParser *parser = [[SBJsonParser alloc] init];

        NSString *responseString = [[NSString alloc] initWithData:self.multipleData encoding:NSASCIIStringEncoding]; 

        NSDictionary *results = [parser  objectWithString:responseString ];

I have tried UTF8 encoding, latin encoding, Json native parser, touchJson parser, and best result, I get this values in the NSDictionary values that contain accents:

html = "Ubicado en pleno campo de Barcelona, a 5 minutos del n\U00facleo urbano de la ciudad y a 7 kil\U00f3metros de las playas y el Aeropuerto.";

How can I get the NSString correctly with accents?

Many thanks

  • 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-06-02T10:16:40+00:00Added an answer on June 2, 2026 at 10:16 am

    What encoding is the data actually in? You need to use that encoding to create the string. Have a look at the raw bytes. If you see C3 BA for the accented u (\u00FA), then the data is in UTF-8. If you see 00FA, it’s UTF-16 if all of the characters are two bytes or possibly ISO-LATIN-1 if not.

    Having got the right encoding, how are you actually printing the string to look at it? Sometimes NSLog or the debugger, for instance, substitute non ASCII characters with escaped sequences. What you have might actually be working.

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

Sidebar

Related Questions

I have an issue regarding to auto populating a select dropdown from jQuery/JSON data
I have been working on a json decode issue (which I have already had
The issue is this: I have a web application that runs on a PHP
i have this code: net.requestXHR = function() { this.xhr = null; if(window.XMLHttpRequest === undefined)
I have a JSON response with the style tag in it. When i validate
I have a little issue with my code which I am using to read
I have a JSON result in the following format which JSON Lint shows this
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
We are new to ROR, We have issue in creating Login/Logout process in ROR
Share your ideas please! I have issue to check the folder and convert a

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.