mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
VRR: Fix umlauts in suggested locations.
This commit is contained in:
parent
af4f9ab0cc
commit
cd8b7fc6dd
2 changed files with 3 additions and 2 deletions
|
@ -44,7 +44,7 @@ public class VrrProvider extends AbstractEfaProvider
|
|||
setNeedsSpEncId(true);
|
||||
setUseRouteIndexAsTripId(false);
|
||||
setStyles(STYLES);
|
||||
setRequestUrlEncoding(Charsets.UTF_8);
|
||||
setRequestUrlEncoding(Charsets.ISO_8859_1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -98,8 +98,9 @@ public class VrrProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void suggestLocationsWithUmlaut() throws Exception
|
||||
{
|
||||
final SuggestLocationsResult result = suggestLocations("grün");
|
||||
final SuggestLocationsResult result = suggestLocations("Köln Mülheim");
|
||||
print(result);
|
||||
assertThat(result.getLocations(), hasItem(new Location(LocationType.STATION, "22000572")));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue