From d48b1e10aa3e29a73666da34b57ad17558313854 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sun, 2 Dec 2018 23:46:41 +0100 Subject: [PATCH] KVV: Fix request URL encoding. --- enabler/src/de/schildbach/pte/KvvProvider.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/enabler/src/de/schildbach/pte/KvvProvider.java b/enabler/src/de/schildbach/pte/KvvProvider.java index 54d0fe32..2b093ac6 100644 --- a/enabler/src/de/schildbach/pte/KvvProvider.java +++ b/enabler/src/de/schildbach/pte/KvvProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 the original author or authors. + * Copyright the original author or authors. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,8 @@ import java.util.regex.Pattern; import javax.annotation.Nullable; +import com.google.common.base.Charsets; + import de.schildbach.pte.dto.Line; import de.schildbach.pte.dto.Style; import de.schildbach.pte.dto.Style.Shape; @@ -42,7 +44,7 @@ public class KvvProvider extends AbstractEfaProvider { public KvvProvider(final HttpUrl apiBase) { super(NetworkId.KVV, apiBase); - + setRequestUrlEncoding(Charsets.UTF_8); setStyles(STYLES); setSessionCookieName("HASESSIONID"); }