fixed encoding for Europe

This commit is contained in:
Andreas Schildbach 2012-04-03 14:08:19 +02:00
parent af99124c18
commit 3c42777247
2 changed files with 11 additions and 1 deletions

View file

@ -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()

View file

@ -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
{