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

  • Home
  • SEARCH
  • 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 8256491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:52:33+00:00 2026-06-08T01:52:33+00:00

When i search ア Data From Google Suggest API And my current language in

  • 0

When i search “ア” Data From Google Suggest API And my current language in device is English. Then I am getting below response in iPhone device.

<?xml version="1.0"?>
<toplevel>
<CompleteSuggestion>
<suggestion data="&#x30A2;&#x30DE;&#x30BE;&#x30F3;"/>
<num_queries int="69300000"/>
</CompleteSuggestion>
<CompleteSuggestion>
<suggestion data="&#x30A2;&#x30E1;&#x30D6;&#x30ED;"/>
<num_queries int="66400000"/>
</CompleteSuggestion>
</toplevel>

When i search “ア” Data From Google Suggest API And my current language in device is Japanese. Then I am getting below response in iPhone device.

<?xml version="1.0"?>
<toplevel>
<CompleteSuggestion>
<suggestion data="ÉAÉ}É]Éì"/>
<num_queries int="69300000"/>
</CompleteSuggestion>
<CompleteSuggestion>
<suggestion data="ÉAÉÅÉuÉç"/>
<num_queries int="66400000"/>
</CompleteSuggestion>
</toplevel>

For English XML Parsing working fine But for Japanese response it gives me error in Parsing XML And not data will be displayed.

Please suggest any way to solve this.

I am using below code for get response from Google Suggest API.

NSString *strUrl = [NSString stringWithFormat:@"http://google.com/complete/search?output=toolbar&q=ア"];

NSURL *url = [NSURL URLWithString:[strUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSString * urlData = [NSString stringWithContentsOfURL:url];

// Print the data that get from google suggest api.
NSLog(@"URL Data :: %@", urlData);

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-08T01:52:35+00:00Added an answer on June 8, 2026 at 1:52 am

    I am solved that issue. in my case google api return me a Japanese Characters.
    So i am change my code as per below:

    NSString *strUrl = [NSString stringWithFormat:@"http://google.com/complete/search?output=toolbar&q=ア"];
    
    NSURL *url = [NSURL URLWithString:[strUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    
    NSError * isError;
    NSString * urlData = [NSString stringWithContentsOfURL:url encoding:NSShiftJISStringEncoding error:&isError];
    
    NSLog(@"URL Data :: %@", urlData);
    

    Thanks.

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

Sidebar

Related Questions

I'm trying to parse some JSON data from the Google AJAX Search API. I
I have a question. How could I get the data from a google search
Is there a Google Image Search API that will return data in XML format?
I am mapping some concert locations on google maps, using data from Songkick.com's API.
Is there a google api can return real estate data from google maps? Eg.
I'm attempting to pull in data from Google's Shopping API. I'm able to download
I want to create search interface to search data from GAE datastore? Can i
I have a search functionality that obtains data from an InnoDB table ( utf8_spanish_ci
Imagine I've got a database with lots of data, from which users can search.
I need help pulling URLs from Google search results and was told to use

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.