Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

weather by city name accent

Romain Mar 13, 2019 03:45PM GMT


i am using the forecast api for French cities with the "by city name" request.
example :[nameCity],fr&APPID=[id]&lang=fr&units=metric

It works fine excepted for the following cases :

Cities with accent :
the city must contains the accent in the request.éches,fr&APPID=[id] --> Works,fr&APPID=[id]--> doesn't Works

Cities with dash :
the cities must contains the dash in the request. roche-posay,fr&APPID=[id] --> Works roche posay,fr&APPID=[id] --> doesn't Works

why do we have to send the request with the accent and the dash characters ?
The users often write the city name without them.
So how could we proceed to avoid this problem ?

Up 0 rated Down
diwaker Mar 15, 2019 07:16PM GMT
Up 0 rated Down
Pavel Zuykov Mar 17, 2019 05:44PM GMT OpenWeatherMap Agent


Our city database working on exact match now. So, dashes and accents may be must for some cities.

You can also use requests by city ID, converting them from your own database.

List of city IDs you can find here:

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found