WordPress.org

Making WordPress.org

Opened 2 years ago

Closed 7 days ago

#3728 closed defect (fixed)

Some city names shown incorrectly in Events API

Reported by: Presskopp Owned by: dryanpress
Milestone: Priority: normal
Component: Events API Keywords: needs-patch
Cc:

Description

Hi,

I just found that entering the german city of Gießen shows the events correctly, but not the name of the city, it will be shown as Giesen

Taking it a step further with the city of Bad Gottleuba-Berggießhübel it will only show Bad, which is bad ;)
After talking to @obenland he said it will be recognized by the API as Bad Gottleuba-Berggießhübel

I tested some more cities having the ß character and such, but they were ok so far.

Attachments (2)

Giesen.png (7.6 KB) - added by Presskopp 2 years ago.
hamburg.jpg (20.9 KB) - added by Presskopp 17 months ago.

Download all attachments as: .zip

Change History (13)

@Presskopp
2 years ago

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


2 years ago

#2 @SergeyBiryukov
2 years ago

  • Component changed from General to API

#3 @dryanpress
2 years ago

  • Owner set to dryanpress
  • Status changed from new to assigned

I'm happy to look at this next week. Any other major special characters to account for @obenland?

#4 @obenland
2 years ago

Not to my knowledge

#5 @Presskopp
17 months ago

I found another glitch using 5.1-beta3-44723, local installation:

Entering Hamburg I get results for Hambûrg!

@Presskopp
17 months ago

#6 @Presskopp
17 months ago

München -> Munchen
Berlin -> Berlín

#7 @dd32
17 months ago

IIRC this is mostly expected as we use the "primary" name for a city in the response (which is mostly English-centric AFAIK) but many lookups of non-ascii cities actually match in the "alternative names" which results in the returned data differing from the searched data.

To fix this I believe we'd want to change the data-source it's looking up against.

This ticket was mentioned in Slack in #meta by tobifjellner. View the logs.


16 months ago

#9 @dd32
9 months ago

  • Component changed from API to Events API

#10 @iandunn
9 months ago

  • Summary changed from Showing community events is not working for some cities to Some city names shown incorrectly in Events API

#11 @dd32
7 days ago

  • Resolution set to fixed
  • Status changed from assigned to closed

This was fixed via #5117

Note: See TracTickets for help on using tickets.