mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
fixed encoding for Europe
This commit is contained in:
parent
af99124c18
commit
3c42777247
2 changed files with 11 additions and 1 deletions
|
@ -36,7 +36,7 @@ public class RtProvider extends AbstractHafasProvider
|
|||
|
||||
public RtProvider()
|
||||
{
|
||||
super(API_BASE + "query.exe/dn", 10, null);
|
||||
super(API_BASE + "query.exe/dn", 10, null, "UTF-8", null);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
package de.schildbach.pte.live;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -81,6 +83,14 @@ public class RtProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autoCompleteEncoding() throws Exception
|
||||
{
|
||||
List<Location> autocompletes = provider.autocompleteStations("Dorfstrasse 1, Schäftland");
|
||||
assertEquals("Schöftland, Dorfstrasse", autocompletes.get(0).name);
|
||||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortConnection() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue