mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +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);
|
setNeedsSpEncId(true);
|
||||||
setUseRouteIndexAsTripId(false);
|
setUseRouteIndexAsTripId(false);
|
||||||
setStyles(STYLES);
|
setStyles(STYLES);
|
||||||
setRequestUrlEncoding(Charsets.UTF_8);
|
setRequestUrlEncoding(Charsets.ISO_8859_1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -98,8 +98,9 @@ public class VrrProviderLiveTest extends AbstractProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void suggestLocationsWithUmlaut() throws Exception
|
public void suggestLocationsWithUmlaut() throws Exception
|
||||||
{
|
{
|
||||||
final SuggestLocationsResult result = suggestLocations("grün");
|
final SuggestLocationsResult result = suggestLocations("Köln Mülheim");
|
||||||
print(result);
|
print(result);
|
||||||
|
assertThat(result.getLocations(), hasItem(new Location(LocationType.STATION, "22000572")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue