mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
fixed autocompletes with umlauts for Hessia
This commit is contained in:
parent
551c959242
commit
4bee7f3e82
2 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ public class RmvProvider extends AbstractHafasProvider
|
||||||
|
|
||||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||||
{
|
{
|
||||||
final String uri = String.format(AUTOCOMPLETE_URI, ParserUtils.urlEncode(constraint.toString(), ISO_8859_1));
|
final String uri = String.format(AUTOCOMPLETE_URI, ParserUtils.urlEncode(constraint.toString(), UTF_8));
|
||||||
|
|
||||||
return jsonGetStops(uri);
|
return jsonGetStops(uri);
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class RmvProviderLiveTest extends AbstractProviderLiveTest
|
||||||
@Test
|
@Test
|
||||||
public void autocompleteUmlaut() throws Exception
|
public void autocompleteUmlaut() throws Exception
|
||||||
{
|
{
|
||||||
final List<Location> autocompletes = provider.autocompleteStations("Wächtersbach");
|
final List<Location> autocompletes = provider.autocompleteStations("könig");
|
||||||
|
|
||||||
print(autocompletes);
|
print(autocompletes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue