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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:20:46+00:00 2026-05-31T21:20:46+00:00

Google Maps API delivers me a string which contains the German letters: ö, ä

  • 0

Google Maps API delivers me a string which contains the German letters: ö, ä , ü and probably several other special characters.

The string looks like:

@" (several spaces ...) Frankfurt an der Oder (several spaces ...) "

(1) If I try stringByReplacing ... and make the spaces disappear, it looks like:

@"FrankfurtanderOder" … which is even worse. So I need to delete the spaces before the first and after the last word, not the spaces in between. How to do this?

(2) Sometimes Google delivers me @"W\U00fcrzburg, Deutschland"

… there is nothing said in the JSON-request about encodings … could it be that the JSON-parser and not the api is the problem?

However, still I have to solve it. Any ideas?

Thank you so far!

EDIT:

For (2) I’ll do the workaround and replace some UTF-8 characters … (Even If this is definitely not the best solution …)

ä -> ä
ö -> ö
ü -> ü
Ä -> Ä
Ö -> Ö
Ü -> Ü
ß -> ß
" -> "
\u00C4 -> Ä
\u00E4 -> ä
\u00D6 -> Ö
\u00F6 -> ö
\u00DC -> Ü
\u00FC -> ü
\u00DF -> ß
  • 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-31T21:20:47+00:00Added an answer on May 31, 2026 at 9:20 pm

    – stringByTrimmingCharactersInSet:

    NSString *str = @"  Frankfurt an der Oder   ";
    NSString *trimmed = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
    NSLog(@"\"%@\"", str);
    NSLog(@"\"%@\"", trimmed);
    
    2012-03-26 14:10:49.302 xx[3752:f803] "  Frankfurt an der Oder   "
    2012-03-26 14:10:49.333 xx[3752:f803] "Frankfurt an der Oder"
    

    about the ü. Does the \U00fc appear in an UILabel or did you just got them from a NSLog? In my experience sometimes NSLog doesn’t print the decoded letters but they appear okay in interface elements.

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

Sidebar

Related Questions

Google Maps API TOS don't allow to store in a database any other information
I use a simple Google Maps API on a simple webpage. The map contains
Does google maps api support suggestions ? In other terms, can I receive from
Google has this fine new Google Maps API v3 which is a Javascript API.
I'm using the Google Maps API to plot several points on a map. However,
I'm using Google Maps API v2 and Geoxml to produce a map which is
I have a google maps api v3, which uses The Di Lab's plugin for
Google Maps API V3 doesn't support the V2 GOverviewMapControl option, yet. I've come across
My site uses the Google Maps API . In situations where the connection to
In the Google Maps API, multiple calls to google.maps.ClientGeocoder.getLatLng(address, callback) are not guaranteed to

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.